quchip.devices.transmon.charge_basis¶
Transmon authored in a finite integer-charge basis.
Classes
|
Transmon with its Hamiltonian authored in the integer-charge basis. |
- class quchip.devices.transmon.charge_basis.ChargeBasisTransmon(E_C, E_J, n_g=0.0, levels=None, label=None, *, num_basis=61, basis=None, collapse_model='fermi_golden', coupling_channel=None, collapse_rate_threshold=1e-08, **noise)[source]¶
Bases:
DeviceModelTransmon with its Hamiltonian authored in the integer-charge basis.
The native Hamiltonian is \(4E_C(n-n_g)^2-E_J\cos\varphi\) in ordinary GHz.
- Parameters:
E_C (float) – Positive charging and Josephson energies in GHz.
E_J (float) – Positive charging and Josephson energies in GHz.
n_g (float, default 0.0) – Offset charge in Cooper-pair units.
levels (int or None, default None) – Number of projected eigenstates, required when
basis="eigen".Noneuses the native dimension for the native basis.label (str or None, default None) – Device label.
num_basis (int, keyword-only, default 61) – Odd integer-charge basis size, at least 3.
basis ({None, "native", "eigen"}, keyword-only) – Requested solver basis.
Noneinherits the chip policy and uses native basis for standalone resolution.nativekeeps the charge basis, andeigenprojects ontolevelsenergy states.collapse_model ({"fermi_golden", "ladder"}, default "fermi_golden") – Relaxation construction. When
T1is set, Fermi-golden-rule relaxation requirescoupling_channel="charge".coupling_channel ({None, "charge"}, default None) – Physical operator for matrix-element relaxation. Only
"charge"is supported and selects the authored charge operator \(n\).collapse_rate_threshold (float, default 1e-8) – Non-negative dimensionless cutoff on squared matrix-element ratios relative to the selected
0 -> 1transition.T1 (float or None) – Relaxation and dephasing times in ns.
Nonedisables each channel.T2 (float or None) – Relaxation and dephasing times in ns.
Nonedisables each channel.thermal_occupation (float or None) – Mean thermal occupation (dimensionless).
Nonedisables thermal absorption.noise (keyword arguments) – The concrete constructor accepts inherited noise fields as keyword arguments.
References
See Koch et al., Phys. Rev. A 76, 042319 (2007), https://doi.org/10.1103/PhysRevA.76.042319.
- tunable_param_names = ('E_C', 'E_J', 'n_g')¶
Parameters eligible for inverse design. DeviceModel derives these from declared fields unless the class or an ancestor supplies a tuple. Explicit tuples remain authoritative when inherited; an empty tuple excludes the device from inverse design. Plain BaseDevice subclasses default to an empty tuple without derivation.
- approximation = 'Exact diagonalization in a finite integer-charge basis; accuracy is governed by num_basis.'¶
Declared approximation-regime statement surfaced by
physics_notes()— the mechanism that keeps a model’s stated validity range attached to the class rather than buried in a docstring a caller may not read.
- computational = True¶
Whether this device represents a computational qubit, as opposed to e.g. a bus resonator or a coupler element.
- structural_setting_names = ('num_basis', 'basis', 'projection_levels', 'collapse_model', 'coupling_channel', 'collapse_rate_threshold')¶
- E_C: Scalar = Parameter(default=unbound, positive=True, nonnegative=False, serialize=True, unit='GHz', symbol='E_C', noise=False, kw_only=False, required=False)¶
- E_J: Scalar = Parameter(default=unbound, positive=True, nonnegative=False, serialize=True, unit='GHz', symbol='E_J', noise=False, kw_only=False, required=False)¶
- n_g: Scalar = Parameter(default=0.0, positive=False, nonnegative=False, serialize=True, unit=None, symbol='n_g', noise=False, kw_only=False, required=False)¶
- dissipation(op, p)[source]¶
Return device-local Lindblad channels.
- Parameters:
op (LocalOps) – Local operator namespace.
p (ParameterNamespace) – Symbolic declared parameters.
T1 (The base channels implement)
T2
Subclasses (and thermal occupation.)
``super().dissipation(op (may append channels with) –
p)``.
- local_hamiltonian(op, p)[source]¶
Return the charge-basis transmon Hamiltonian.
- Parameters:
op (LocalOps) – Charge-space operator namespace.
p (ParameterNamespace) – Symbolic
E_C,E_Jandn_gvalues.
- classmethod from_frequency(freq, anharmonicity, n_g=0.0, levels=None, label=None, *, num_basis=61, basis=None, **kwargs)[source]¶
Construct from the leading transmon-regime inversion.
- Parameters:
freq (float) – Calibrated transition and anharmonicity in GHz.
anharmonicity (float) – Calibrated transition and anharmonicity in GHz.
n_g (float, default 0.0) – Offset charge in Cooper-pair units.
levels (int or None, default None) – Projected eigenstate count.
label (str or None, default None) – Device label.
num_basis (int, keyword-only, default 61) – Odd charge-basis dimension.
basis ({None, "native", "eigen"}, keyword-only) – Basis policy.
**kwargs (Any) – Noise and other constructor keyword arguments.