rotating_frame_operator
- Model.rotating_frame_operator(t, only_diag=False, in_qubit_subspace=False, inverse=False)
Return the rotating-frame operator defined by
rotating_frame_hamiltonian.By default (
rotating_frame_hamiltonian='local_qubit_z'),\[U_\text{rot}(t) = \bigotimes_{i\in\text{spins}} e^{i 2 \pi f_i t \sigma_{z,i}/2},\]where \(f_i\) are the rotating frame frequencies of the spins and \(\sigma_{z,i}\) are the Pauli z-operators. Frequencies are specified in the
BaseSpin.rotating_frame_frequencyattribute.If
rotating_frame_hamiltonianis'static_hamiltonian'or a square matrix, that matrix is interpreted as a rotating-frame Hamiltonian \(H_\mathrm{rf}\) and the operator is\[U_\text{rot}(t) = e^{-i 2 \pi t H_\mathrm{rf}}.\]- Parameters:
- Return type:
ndarray|Array- Returns:
Rotating-frame operator(s). Shape depends on the
only_diagparameter and the type oft.