Measures on vectors, states, and quantum operations.
Calculate the Fubini–Study metric between elements of a Hilbert space.
The Fubini–Study metric is a distance measure between vectors in a projective Hilbert space. For gates this space is the Hilbert space of operators induced by the Hilbert-Schmidt inner product. For 1-qubit rotation gates, Rx, Ry and Rz, this is half the angle (theta) in the Bloch sphere.
The Fubini–Study metric between states is equal to the Burr angle between pure states.
Cosine of the Fubini–Study metric.
Return True if vectors are close in the projective Hilbert space.
Similarity is measured with the Fubini–Study metric.
The Fubini-Study angle between states.
Equal to the Burrs angle for pure states.
The Fubini-Study angle between density matrices
Calculate the purity of a mixed quantum state.
Purity, defined as tr(rho^2), has an upper bound of 1 for a pure state, and a lower bound of 1/D (where D is the Hilbert space dimension) for a competently mixed state.
Two closely related.info are the linear entropy, 1- purity, and the participation ratio, 1/purity.
Returns True if densities are almost identical.
Closeness is measured with the Fubini-Study fidelity.
Return the fidelity F(rho0, rho1) between two mixed quantum states.
Return the Bures distance between mixed quantum states
Return the Bures angle between mixed quantum states
Returns the von-Neumann entropy of a mixed quantum state.
rho – A density matrix
base – Optional logarithm base. Default is base e, and entropy is .info in nats. For bits set base to 2.
The von-Neumann entropy of rho
Compute the bipartite von-Neumann mutual information of a mixed quantum state.
rho – A density matrix of the complete system
qubits0 – Qubits of system 0
qubits1 – Qubits of system 1. If none, taken to be all remaining qubits
base – Optional logarithm base. Default is base e
The bipartite von-Neumann mutual information.
The Fubini-Study angle between gates
Returns: True if gates are almost identical, up to a phase factor.
Closeness is measured with the Fubini-Study metric.
Returns: True if gates are almost identical and have almost the same phase.
Returns: True if gates (almost) commute.
Return true if gate is (almost) unitary
Return true if gate tensor is (almost) Hermitian
Return true if gate tensor is (almost) the identity
The Fubini-Study angle between channels
Returns: True if channels are almost identical.
Closeness is measured with the channel angle.