qiskit.quantum_info.Statevector.equiv¶
- Statevector.equiv(other, rtol=None, atol=None)[source]¶
Return True if other is equivalent as a statevector up to global phase.
নোট
If other is not a Statevector, but can be used to initialize a statevector object, this will check that Statevector(other) is equivalent to the current statevector up to global phase.
- প্যারামিটার
other (Statevector) -- an object from which a
Statevector
can be constructed.rtol (float) -- relative tolerance value for comparison.
atol (float) -- absolute tolerance value for comparison.
- রিটার্নস
True if statevectors are equivalent up to global phase.
- রিটার্ন টাইপ
bool