virtual_phases_operator
- Model.virtual_phases_operator(only_diag=False, in_qubit_subspace=False, inverse=False)
Return the operator corresponding to the virtual z-phases:
\[U_\text{z-phase} = \bigotimes_{i\in\text{spins}} e^{i \phi_i \sigma_{z,i}/2},\]where \(\phi_i\) are the virtual z-phases of the spins and \(\sigma_{z,i}\) are the Pauli z-operators. Phases are specified in the
BaseSpin.virtual_phaseattribute.- Parameters:
- Return type:
ndarray|Array- Returns:
Operator corresponding to the virtual z-phases. Shape depends on the
only_diagparameter.