rotating_frame_operator

Model.rotating_frame_operator(t, only_diag=False, in_qubit_subspace=False, inverse=False)

Return the rotating frame operator:

\[U_\text{rot}(t) = \prod_{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 Spin.rotating_frame_frequency attribute.

Parameters:
  • t (float | List[float] | ndarray | Array) – Time point(s).

  • only_diag (bool) – If True, return only the diagonal of the operator.

  • in_qubit_subspace (bool) – If True, return only the operator projected to the qubit subspace.

  • inverse (bool) – If True, return the inverse of the operator.

Return type:

ndarray | Array

Returns:

Rotating frame operator(s). Shape depends on the only_diag parameter and the type of the t parameter.