qudit_sim.HamiltonianBuilder.set_global_frame

HamiltonianBuilder.set_global_frame(frame_spec, keep_phase=False)

Set frames for all qudits globally.

The allowed frame names are:

  • ‘qudit’: Set frame frequencies to the individual qudit level gaps disregarding the couplings. Equivalent to calling set_frame(qid, frequency=None, phase=None) for all qid.

  • ‘lab’: Set frame frequencies to zero.

  • ‘dressed’: Diagonalize the static Hamiltonian (in the lab frame) and set the frame frequencies to cancel the phase drifts of single-qudit excitations.

  • ‘drive’: For qudits with a drive term, set the frame frequency for all levels to that of the drive. Use the default frame for qudits without a drive. Exception is raised if there are qudits with more than one drive terms.

Parameters
  • frame_spec (Union[str, Dict[Hashable, Frame], Sequence[Frame]]) – Frame specification in dict or list form, or a frame name (‘qudit’, ‘lab’,

  • 'dressed'

  • 'drive'). (or) –

Return type

None