An operator is a mathematical object that acts on quantum states to produce another quantum state. For example, the Hamiltonian operator corresponds to the total energy of a system.