Quantum Information Formulas
These cards collect compact formulas for representing qubits, comparing states, manipulating circuits, summarizing information, and using stabilizer structure. Quantum-information notation is unusually convention sensitive: state and channel metrics, squared and root fidelity, qubit ordering, logarithm base, and Pauli phases must be stated.
Choose a card
Section titled “Choose a card”| Need | Card | Core statement |
|---|---|---|
| Represent a qubit state | Bloch Vector | |
| Apply common one- and two-qubit gates | Quantum Gates | |
| Compare state overlap | Fidelity | |
| Bound state distinguishability | Trace Distance | |
| Relate entropic quantities | Entropy Identities | |
| Work with stabilizer states or codes | Stabilizer Identities |
State representation
Section titled “State representation”A qubit density operator can be written as
Its purity is
For a Pauli measurement along unit vector ,
The Bloch ball is complete for one qubit. Multiqubit and higher-dimensional states require more coefficients and positivity constraints; one Bloch vector per subsystem does not determine joint correlations.
State-comparison map
Section titled “State-comparison map”No single scalar answers every comparison question.
| Quantity | Question | Range | Key warning |
|---|---|---|---|
| Purity | How concentrated is one state’s spectrum? | in dimension | Not a distance to a target |
| Squared fidelity | How much do two states overlap? | Some sources use root fidelity | |
| Trace distance | How distinguishable are two states? | State distance, not channel distance | |
| Entropy | How uncertain is the spectral distribution? | Logarithm base matters |
This site uses
and
Their Fuchs–van de Graaf bounds are
For two pure states, the upper bound is an equality. For mixed states it need not be.
Operational distinctions
Section titled “Operational distinctions”Trace distance controls the largest statistical separation available to any measurement:
For equal priors, the optimal one-copy guessing probability is
Fidelity has a purification interpretation:
Purity has a two-copy swap identity:
These formulas use different experiments and answer different questions. Numerical similarity of their values does not make them interchangeable.
States versus channels
Section titled “States versus channels”The cards in this section primarily compare states. A channel
is a map on every allowed input, possibly with an entangled reference. Testing one output state does not determine worst-case channel behavior.
Common channel-level quantities include:
- diamond distance;
- entanglement fidelity;
- average gate fidelity;
- process or Choi-state fidelity, with stated normalization;
- unitarity and leakage metrics.
These quantities have different averaging, ancilla, and input assumptions. Do not label a state overlap from one test input as “gate fidelity.”
For state trace distance,
while squared fidelity obeys
Both statements express loss of distinguishability under common physical processing.
Gates and tensor ordering
Section titled “Gates and tensor ordering”Quantum gates are unitary matrices:
For a register, the tensor-factor convention must be explicit. The matrix called controlled-NOT differs depending on:
- whether the first displayed bit is the most or least significant;
- whether basis states are ordered or differently;
- which subsystem is control and which is target;
- whether matrices act on column vectors from the left.
Global phase does not change a closed-system state:
induce the same transformation on state vectors up to global phase. Relative phases and controlled phases remain observable.
Entropy conventions
Section titled “Entropy conventions”The von Neumann entropy is
Quantum-information work often uses base two and reports bits:
Statistical mechanics often uses the natural logarithm, sometimes with a factor . Convert before comparing values.
For a bipartite state,
Conditional entropy,
can be negative for quantum states. Importing every classical intuition without checking the quantum theorem is unsafe.
Stabilizer conventions
Section titled “Stabilizer conventions”An -qubit stabilizer group is an abelian subgroup of the Pauli group that does not contain . The projector onto its simultaneous eigenspace is
If has independent generators, the code space has dimension one and defines a stabilizer state. If it has independent generators, the code space has dimension
State whether Pauli phases are retained, quotiented, or represented symplectically. A binary stabilizer table without phase data is insufficient for every update rule.
Basis and subsystem checklist
Section titled “Basis and subsystem checklist”Before using a matrix formula, record:
- Hilbert-space dimension.
- Ordered basis.
- Tensor-factor order.
- Endianness for bit strings.
- State-vector or density-matrix convention.
- Operator action side and vector orientation.
- Fidelity convention.
- Entropy logarithm base.
- State metric or channel metric.
- Any truncation, leakage space, or postselection.
Most apparent disagreements between software libraries reduce to one of these conventions.
Numerical checks
Section titled “Numerical checks”- Density matrices must be Hermitian, positive, and trace one.
- State vectors must have unit norm.
- Gates must satisfy within tolerance.
- Channel outputs must retain positivity and the declared trace condition.
- Computed fidelity and trace distance must lie in .
- Qubit Bloch vectors must obey .
- Stabilizer generators must commute and exclude .
- Entropy eigenvalues must be handled with the limit .
- Tensor permutations must be tested on labeled product basis states.
Never repair a substantial violation by blind clipping or renormalization. Identify whether the cause is numerical tolerance, reconstruction noise, basis mismatch, or an invalid model.
Common routing mistakes
Section titled “Common routing mistakes”- Using purity to measure closeness to a target.
- Reporting fidelity without squared/root convention.
- Replacing trace norm by Frobenius norm.
- Calling one-output state fidelity a gate fidelity.
- Comparing states in different subsystem orders.
- Treating a reduced state as a full description of correlations.
- Suppressing identity factors in local operators.
- Forgetting entropy log base.
- Assuming conditional entropy is always nonnegative.
- Ignoring phase conventions in stabilizer arithmetic.
- Applying single-qubit Bloch formulas to multiqubit states.
- Confusing postselection with a trace-preserving channel.
Canonical explanations
Section titled “Canonical explanations”- Information-Theoretic Foundations routes an operational question to the page that owns its carrier, state, entropy, entanglement, measurement, or resource calculation before this compendium is used for lookup.
- Density Operators for Quantum Information
- Bits, Qubits, Qudits, and Modes
- Quantum Channels and Noise
- Entropy Identities
- Circuit Model
- Why Quantum Error Correction Is Possible
- Density-Matrix and Open-System Formulas
References
Section titled “References”- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th anniversary ed., Cambridge University Press, 2010.
- M. M. Wilde, Quantum Information Theory, 2nd ed., Cambridge University Press, 2017.
- J. Watrous, The Theory of Quantum Information, Cambridge University Press, 2018.
- J. Preskill, Lecture Notes for Physics 229: Quantum Information and Computation, California Institute of Technology.