Stabilizer code Created 2026-09-24 Updated 2026-10-14
A stabilizer code is the common eigenspace of a stabilizer group , an abelian subgroup of the Pauli group excluding . Choose independent stabilizer generators on physical qubits. They are commuting Hermitian operators, each squaring to . The stabilizer subspace and its orthogonal projector are
The stabilizer-projector formula gives , so logical qubits remain. Independent here means that no nonempty product of the chosen stabilizer generators is . Excluding is necessary: a vector cannot simultaneously be fixed by and unless it is zero.
For the three-qubit bit-flip repetition code, take and , with the Pauli Z gate on site and identities elsewhere. The stabilizer group is . Both stabilizer generators have eigenvalue exactly on the span of and , giving dimensions for one logical qubit. A projective measurement of these checks distinguishes four orthogonal two-dimensional sectors rather than eight individual computational basis states.
A Pauli error that anticommutes with a stabilizer generator changes that check's sign, producing an error syndrome. A Pauli operator commuting with every check can still act on the logical qubits; the centralizer of a stabilizer group describes these possibilities. Thus the number of checks determines the encoded dimension, while the quantum code distance determines protection against arbitrary local errors. The five-qubit error correcting code, for instance, has four stabilizer generators and quantum code distance three; the three-qubit bit-flip repetition code has two checks but quantum code distance one because a single phase flip is unflagged. [ref].
Consider identical length- arms joined to one hub, with XY exchange interactions of strength from the hub to each first site and strength between sites on each arm. Let be the hub excitation and . This orthonormal symmetric single-excitation subspace is invariant, and its restricted Hamiltonian operator is
with endpoint terms omitted. At the first link the hub contributions add to ; all other links act identically on the arms. Thus the linear isometry intertwines with the path Hamiltonian operator : . Expanding the matrix exponential gives . Perfect quantum state transfer from zero to on the path therefore produces an equal excitation superposition at the arm tips. Since all other qubits are zero, the tip state is a pure W state, up to the transfer's common phase.
If two pure quantum states overlap by , their -copy states have overlap . Each block spans an effective qubit, with orthonormal basis and . Applying the two-block PBR exclusion measurement for zero and plus uses independently prepared copies. A common single-copy ontic overlap of positive mass remains positive under this finite tensor power.
Measure the commuting stabilizer generators and in that order. Use error syndrome bit for eigenvalue and bit for eigenvalue . For the Pauli X gate on physical qubit , every row holds for arbitrary normalized . This ordered parity-check convention follows [ref]:
ErrorState before recovery eigenvaluesError syndromeRecovery
Each pair of computational basis words within a row has the same two parities. Consequently the projective measurement reveals the row without distinguishing its two amplitudes. For example, becomes under . Both checks give with probability one, and applying restores both coefficients exactly, including the relative phase .
One implementation uses two quantum ancillas initialized to . Two controlled-NOT gates from data qubits 1 and 2 to the first quantum ancilla write their parity; two more from data qubits 2 and 3 to the second quantum ancilla write the other parity. Measuring only the quantum ancillas in the computational basis gives . Measuring the individual data qubits instead would reveal the encoded computational basis value and destroy the unknown quantum superposition. The existing coherent syndrome extraction for the three-qubit repetition code uses the alternative ordered checks , so its bit labels differ from this table.
Figure 1.
Parity checks identify a bit flip without reading the logical amplitudes
. Details.
The recovery also handles coherent errors. Put . Their images of the code are mutually orthogonal, giving , the Knill--Laflamme condition for this family. For any linear combination , its component in sector is . Measuring that error syndrome has probability on the normalized erroneous state, and recovery returns . More generally one recovery quantum channel corrects every noise quantum channel whose Kraus operators belong to this span. The assumption concerns the whole jointly correctable family; it does not extend to the span of arbitrary single-site Pauli errors. [ref].
A fully computed coherent example is the unitary operator . At it gives
The error syndromes and occur with probabilities and , independently of . Doing nothing for and applying for restores the same logical qubit in both branches; the scalar in the second branch is an irrelevant global phase. This is an example of linearity of coherent quantum error correction, rather than an assumption that the original error was a classical random bit flip.
A path graph state on three qubits simulates two successive gates . Measure vertex one in the equatorial qubit measurement basis , then vertex two at angle , obtaining bits . Two one-bit teleportations and leave vertex three in , up to global phase. A computational output bit is corrected to ; the factor affects only phase. Adaptive sign choice is required for general angles, although the final bit correction is purely classical.
Trace distance Created 2026-09-24 Updated 2026-10-14
How different can two preparations look to someone who can perform any measurement in quantum mechanics? The trace distance answers this question for density operators on the same finite-dimensional vector space:
Here is the absolute value of an operator, and is its trace norm. Because is Hermitian, its trace norm is the sum of the absolute values of its eigenvalues; it is not the sum of the absolute values of its matrix entries. The factor gives
The trace distance is a metric: it is symmetric, vanishes exactly when , and obeys the triangle inequality. Identical preparations have trace distance zero; preparations with orthogonal occupied eigenspaces have trace distance one and can be identified perfectly in a single measurement in quantum mechanics.
Operationally, the trace distance is the largest total variation distance between the outcome probability distributions obtainable by a POVM. Equivalently, the variational characterization of trace distance says it is the largest possible probability gap for one event in a binary measurement in quantum mechanics. For one copy of either known preparation, each chosen with prior probability , the Holevo–Helstrom theorem gives
Thus trace distance zero leaves only guessing, while trace distance one permits perfect quantum state discrimination. The optimum ranges over measurements; different measurement bases can expose different amounts of distinguishability. [ref]
For a worked example with commuting density operators, take a qubit with
Their difference has eigenvalues , so . Measuring in the computational basis produces outcome probability distributions and , whose total variation distance is also . Guessing on outcome zero and on outcome one succeeds with probability . A projective measurement in the Hadamard basis instead produces for both preparations and gives no discrimination advantage.
The trace-distance contraction under quantum channels ensures that a common quantum channel, including the partial trace, cannot increase the trace distance. This makes trace distance a useful error measure: if , every event in every measurement in quantum mechanics has a probability gap at most . Losing access to a subsystem can hide distinguishability, but cannot create more of it.
For qubit density operators, the trace distance has a particularly simple geometry. Write their Bloch vectors as in the Bloch ball:
where is the identity operator and denotes the Pauli matrices. This Bloch vector representation includes both pure states on the Bloch sphere and mixed states in the interior of the Bloch ball. [ref]
The Pauli matrix multiplication law gives . Hence the two eigenvalues of are , and their absolute sum gives
The trace distance is half the straight-line Euclidean distance between the Bloch vectors, not the angular or surface distance along the Bloch sphere. Opposite Bloch vectors have trace distance one; the centre is at trace distance from every pure state.
For the pure states and , the Bloch vectors are and . Their straight-line separation is , so
These Bloch vectors are perpendicular, but the pure states are not orthogonal: . The Helstrom measurement for the zero and plus states measures along the difference direction , rather than along either input Bloch vector.
Figure 1.
Trace distance is half a Bloch-vector chord, and the optimal zero-versus-plus measurement follows the difference direction
. Details.
For the pure qubit , subtracting the output of dephasing channel leaves a Hermitian matrix with zero diagonal and off-diagonal modulus . Its two eigenvalues are that number and its negative, giving the displayed trace distance. For real , this is .
Trine qubit POVM 2026-10-14
Choose three pure qubit states whose unit Bloch vectors are coplanar, sum to zero and have pairwise angle degrees. The three effects sum to the identity, giving a POVM. If an input is the state orthogonal to or to , outcome one excludes the first input and outcome two excludes the second. Each conclusive outcome has probability one half on its corresponding input; the third outcome is inconclusive with probability one half on either input. This gives unambiguous quantum state discrimination, rather than identification on every trial.
For , a projective measurement of the number of ones in one party's local qubits gives a common type class of size . The conditional pure state is . It can be converted exactly and deterministically to a uniform common-label state of any dimension : one party measures an -element subset with Kraus operator , and all parties relabel their common retained labels after receiving . Choosing gives independent GHZ states. Stirling's formula and the weak law of large numbers give in probability. Measuring every local bit separately would instead destroy the coherence and leave a product state.
Two-level sudden quench 2026-10-14
Take an isolated two-level system, or a spin one-half qubit, with Pauli matrices . Let and . The initial and final Hamiltonian operators are
The energy gaps are . Prepare the initial ground state , with energy eigenvalue . A final orthonormal eigenbasis is
Direct matrix multiplication gives and . The unchanged initial quantum state is . Its new probability amplitudes are the inner products ; the Born rule gives . The angle between the real amplitude vectors is , whereas the Hamiltonian axis on the Bloch sphere rotates through .
Figure 1.
Fixed quantum state, rotated eigenbasis, and sudden-quench Born rule probabilities
. Original two-level sudden quench calculation. The left panel shows real amplitude coordinates, not spatial directions or the Bloch sphere. Dashed perpendicular projections give signed probability amplitudes; the right panel squares them. At , the final ground state and excited-state probabilities are and . Source. Details.
At , and , so the final energy measurement gives with probability and with probability . At the initial ground state remains the final ground state; at it is the final excited energy eigenstate. These statements are about the new energy labels, not an instantaneous physical rotation of the quantum state.
Let and . Starting from the Bell state , Alice applies the measurement in quantum mechanics with Kraus operators displayed above. Completeness follows from . Each outcome has probability . The normalized outputs are and . Communicating the outcome allows both parties to apply a Pauli X gate in the second branch, making both outputs equal to the first. Thus this LOCC protocol deterministically converts one Bell pair into any two-qubit pure state with these Schmidt coefficients, after appropriate local unitary operations. It includes the product state endpoint without postselection.
Two-qubit gate 2026-10-07
A two-qubit gate is a unitary operator on two qubit lines, extended by the identity on the others. It may be entangling, as a CNOT gate is, or a product of local operations. In a Hamiltonian simulation model allowing arbitrary two-qubit gates, the exponential of a Hermitian term supported on two lines counts as one such gate. Compiling it into a fixed discrete universal quantum gate set introduces a separate approximation cost.
The rotation-invariant average of pure qubit states is uniform area measure on the Bloch sphere, induced by Haar measure on unitary transformations. For a uniformly distributed unit Bloch vector , rotational symmetry gives and . Uniform polar angle without the factor is a different distribution.
W state 2026-10-14
The -qubit W state is the Dicke state with one excitation:
For three qubits it is . Its reduced density matrix on any one qubit is , from the Dicke state recursion. For both diagonal entries are nonzero, so that qubit is entangled with the rest: a pure product state would have a pure marginal. A symmetric-arm reduction of an exchange Hamiltonian supplies a dynamical preparation from one initial excitation.