operator_from_string
- Model.operator_from_string(string, in_qubit_subspace=False)
Return tensor product operator from an extended operator string.
Uppercase
I/X/Y/Zrefer to Pauli operators in qubit subspace, while lowercasex/y/zrefer to full-space spin operatorsSx/Sy/Sz.Mdenotes the full-space projector onto them_s = 0state.- Parameters:
- Raises:
SimphonyError – If the string contains an unsupported character or has the wrong length.
- Return type:
ndarray|Array