Hcpb.params_from_spectrum#

Hcpb.params_from_spectrum(f01: float, anharm: float, **kwargs)[source]#

Method to work backwards from a desired transmon frequency and anharmonicty to extract the target Ej and Ec for design and fabrication. Updates the class to include these Ej and Ec as the new values for extracting properties.

Parameters:
  • f01 (float) – Desired qubit frequency

  • anharm (float) – Desired qubit anharmonicity (should be negative)

Keyword Arguments:

least_squares (Passed to) –

Returns:

Ej and Ec of the transmon Hamiltonian corresponding to the f01 and anharmonicty of the device

Return type:

(float, float)