Hcpb.n_to_qutip

Hcpb.n_to_qutip(n_transmon: int, thresh=None)[source]

Wrapper around Qutip to output the number operator (charge) for the Transmon Hamiltonian in the energy eigen-basis. Used for computing the coupling between other elements in the system.

Parameters:
  • n_transmon (int) – Number of energy levels to consider

  • thresh (float) – Threshold for keeping small values in the number operator i.e n_{i,i+2} terms drop off exponentially. If None retain all terms. Defaults to None

Returns:

Returns a Qutip Qobj corresponding to the number operator for defining couplings in the energy eigen-basis.

Return type:

Qobj