supergrad.quantum_system.CircuitLCJ.set_charge_basis#
- CircuitLCJ.set_charge_basis(n_max, num_n=0)[source]#
Initializes parameters for charge basis.
cos/sin works as exp(ipt) which increase/decrease n by 1
Note num_n will not be exact as x+any integer belongs to one group for cos/sin so a multiple of 2*n_max is used
- Parameters:
n_max – Basis as [-n_max, n_max-1] (or n_max depends on is_basis_sym)
num_n – Number of basis, not used for transmon (where n basis is periodic and must be integer, so fully determined by n_max)