supergrad.quantum_system.Resonator

supergrad.quantum_system.Resonator#

class supergrad.quantum_system.Resonator(f_res: float = None, remove_zpe: bool = False, constant: bool = False, truncated_dim: int = 10, name: str = 'resonator', **kwargs)[source]#

Class representing a harmonic resonator.

Parameters:
  • f_res – resonator frequency in unit GHz

  • remove_zpe – Remove the Zero-point energy(ZPE) of the resonator.

  • constant (bool) – True for manually setting parameters, False for using haiku’s parameters management.

  • truncated_dim – Number of eigenenergies to construct the Hilbert space.

  • name – module name

__init__(f_res: float | None = None, remove_zpe: bool = False, constant: bool = False, truncated_dim: int = 10, name: str = 'resonator', **kwargs) None[source]#

Methods

__init__([f_res, remove_zpe, constant, ...])

annihilation_operator(**kwargs)

Returns the creation operator

creation_operator(**kwargs)

Returns the creation operator

eigenenergies()

Returns array of eigenvalues.

idling_hamiltonian()

Create the hamiltonian matrix of the resonator.

params_dict()

Returns parameters keyed by name for this module and submodules.

state_dict()

Returns state keyed by name for this module and submodules.

Attributes

dim

Returns truncated Hilbert space dimension

qdevice_type