qiskit.quantum_info.SparsePauliOp.is_unitary¶
- SparsePauliOp.is_unitary(atol=None, rtol=None)[소스]¶
Return True if operator is a unitary matrix.
- 매개변수
atol (float) – Optional. Absolute tolerance for checking if coefficients are zero (Default: 1e-8).
rtol (float) – Optional. relative tolerance for checking if coefficients are zero (Default: 1e-5).
- 반환
True if the operator is unitary, False otherwise.
- 반환 형식
bool