StateVector.is_pure_state
- static StateVector.is_pure_state(V, tol=1e-08)[source]
Check if V is a pure state vector.
- Parameters:
V (
Any) – The vector to check.tol (
float) – The numerical precision of the check.
- Returns:
True if V is a pure quantum state vector.
- Return type:
TypeGuard[StateVector|complex128|Sequence[int|float|complex]]