When , the function is injective, so the states are distinct computational basis states and hence form an orthonormal set. Therefore, for arbitrary signs ,
In the computational basis,
At , the two opposite off-diagonal contributions cancel, giving
Prepare an ancilla qubit in . To measure , apply a Hadamard gate to each data qubit, apply a controlled-NOT gate from each data qubit to the ancilla, measure the ancilla in the computational basis, and apply a Hadamard gate to each data qubit again. The ancilla records the parity of the two rotated computational-basis bits, so outcome corresponds to eigenvalue and outcome to eigenvalue . The data register is projected by , so its complete post-measurement state is retained. For , perform the same ancilla-assisted Pauli measurement but apply the basis-changing Hadamard gates only to the second data qubit.
The tensor products of single-qubit Pauli matrices form an orthogonal basis of the operator space on qubits, so every linear error operator has a Pauli expansion. Using , with scalar phases absorbed into the coefficients, its computational basis action is , with binary arithmetic. This describes coherent errors as well as individual Pauli errors; it does not assume that the noise is a probabilistic Pauli channel. A physical noise map has Kraus operators of this form when the usual quantum channel description applies, for instance when the initial system and environment are uncorrelated.
Pauli frame 2026-10-06
A Pauli frame is a classical record of known Pauli operator byproducts rather than their physical correction. A one-qubit frame changes a computational basis measurement label by ; changes only a phase. Conjugation by Clifford gates maps Pauli operators to Pauli operators, so the frame can be updated by classical binary arithmetic throughout a Clifford circuit.
Quantum error correction Created 2026-09-24 Updated 2026-10-18
Quantum error correction protects a logical qubit by encoding its quantum state into a larger Hilbert space, where a specified family of physical errors can be diagnosed and reversed by a common recovery quantum channel. The requirement is to restore every encoded quantum superposition, including its relative phase, rather than only the computational basis states. A quantum error-correcting code specifies which errors have this protection; it does not promise recovery from every possible disturbance.
The beautiful idea is to measure relations between physical qubits that reveal an error syndrome while revealing nothing about the protected logical qubit. For example, the bit-flip repetition code compares neighboring qubits without reading their individual values. Its parity checks can locate one Pauli X gate error while leaving the unknown coefficients intact. Encoding is a linear isometry, consistent with the no-cloning theorem: redundancy in a shared quantum state supplies protection without making independent copies of the unknown input.
Peter W. Shor's 1995 paper [ref], published on 1 October, introduced the nine-qubit Shor code to reduce quantum decoherence in memory. Andrew M. Steane's [ref], published on 29 July 1996 and [ref], connected quantum error correction to classical linear codes; the seven-qubit Steane code protects against arbitrary errors on one physical qubit. These constructions protect relative phase as well as computational basis values, going beyond the elementary bit-flip repetition code.
For an authored account of the mechanism, see John Preskill's [ref], especially section 7.1 on collective parity measurements and section 7.9 on stabilizer codes. Andrew Steane's A tutorial on quantum error correction develops the distinction between correcting a stored quantum state and operating with imperfect quantum gates.
Measurement in quantum mechanics Created 2026-09-24 Updated 2026-10-13
A measurement in quantum mechanics turns a quantum state preparation into a classical outcome, such as a detector label. Two questions must be distinguished: how likely is each outcome, and what quantum state remains conditional on that outcome? A positive operator-valued measure answers the first; a quantum instrument answers both. This distinction is useful whenever a measured system participates in a later experiment, including quantum state tomography and measurement-based quantum feedback.
For a density operator , the Born rule gives , where the are positive operators satisfying . Here is the identity operator, and denotes the trace. Positivity makes every nonnegative; completeness makes their sum one. For a pure state, and . A projective measurement is the special case in which the are orthogonal projections onto mutually orthogonal subspaces.
For a qubit, choose the computational basis and write a normalized pure state, up to global phase, as
The angle is a relative quantum phase; at the poles it does not distinguish states. Measuring the Pauli matrix reports for label zero and for label one, with
These probabilities describe repeated identical preparations. They do not assign a hidden, pre-existing value to every possible measurement basis.
Figure 1.
Qubit measurement probabilities: Z measures populations, while X detects relative phase
. Details.
The Born rule grew out of Max Born's 1926 work on quantum scattering: squared probability amplitudes determine the relative frequencies of scattering outcomes. Born explained this statistical interpretation again in his 1954 Nobel lecture. This probability law does not by itself select a post-measurement state. [ref]; [ref].
Quantum superposition Created 2026-10-07 Updated 2026-10-14
A quantum superposition is a linear combination of quantum state vectors in a complex Hilbert space. In a specified orthonormal basis, a normalized pure state has the displayed expansion, where are probability amplitudes. A nonzero linear combination can always be normalized; an arbitrary sum of normalized vectors need not already have norm one. Having more than one nonzero component depends on the chosen basis: the Hadamard basis vector is a quantum superposition of the two computational-basis states, but is a single vector of the Hadamard basis. [ref].
The distinction from classical ignorance is quantitative. Consider the normalized qubit quantum state
Its density operator, written in the computational basis, is
Preparing with probability and with probability , while discarding the preparation label, instead gives the mixed state
The diagonal entries agree, so both preparations give the same computational-basis measurement probabilities. The off-diagonal entries of retain quantum coherence and the relative quantum phase. In the Hadamard basis, the Born rule gives
The density matrix representation retains this distinction between a pure state and a mixed state. [ref].
For example, at , the quantum superposition yields the plus outcome with probability about , whereas the mixed state yields it with probability . At these particular probabilities agree, although the density matrices still differ: equality for one measurement does not establish equality of quantum states. The probability amplitude figure shows the comparison throughout a full cycle of relative quantum phase.
This is why a quantum superposition is useful: quantum gates act linearly on its probability amplitudes, and unitary operators preserve the full pure state information, including relative quantum phases. A Hadamard gate can turn otherwise hidden quantum coherence into different outcome probabilities. The beautiful feature is that the same basis weights can support different predictions when amplitudes recombine. The expansion specifies a preparation and its measurement predictions; it does not assign every unmeasured outcome a simultaneous classical value. See projective measurement for the separate question of the conditional state after a measurement.
Qubit Created 2026-09-25 Updated 2026-10-14
A qubit, or quantum bit, is a quantum system whose state space is a two-dimensional complex Hilbert space. Choose an orthonormal basis , called the computational basis. A pure state has a normalized representative , where are complex probability amplitudes and . General qubit states, including mixed states, require a density matrix. [ref].
The abstract qubit describes the chosen degree of freedom: for spin one-half, can label spin up and down along a specified axis; for photon polarization in a fixed propagation mode, they can label horizontal and vertical polarization, . These implementations share the same two-dimensional linear algebra, but their preparation and measurement in quantum mechanics use different apparatus. A qubit therefore need not be an entire two-level particle. [ref].
The usefulness of a qubit lies in controlling quantum superpositions and their relative quantum phases, then converting them into outcome probabilities with quantum gates and an appropriate measurement. One ideal computational-basis measurement returns one label, zero or one. It does not reveal both probability amplitudes, their relative quantum phase, or all the bits of a larger register's expansion. Quantum state tomography instead estimates a qubit state using many repetitions of the preparation and suitable measurement settings. [ref].
An actual preparation and measurement example is Dederick and Beck's 2014 teaching-laboratory experiment. A 405-nm laser pumped two nonlinear crystals, producing signal and idler photons near 810 nm. In their non-entangled run the source produced ; a quarter-wave plate in the signal arm changed its photon polarization to in their convention. The plate supplies a relative quantum phase between polarization components. An idler detection selected the signal trials; signal detectors measured horizontal/vertical, diagonal, and circular polarization bases on separate runs. Before the polarization analyzer, a half-wave plate at degrees selected the diagonal basis, and a quarter-wave plate at degrees selected the circular basis. Coincidence counts gave the conditional positive-outcome frequency . The reconstructed density matrix for conditioning on detector had squared quantum fidelity with and purity of a density operator : close to the intended pure state, rather than an exact ideal preparation. [ref].
Figure 1.
Ideal polarization-qubit preparation and measurements in three separate settings
. Original model schematic and exact Born-rule probabilities, not measured data or a reproduction of the experimental apparatus. The circular-basis sign uses the explicitly defined state . Details.
The model diagram explains why those settings matter. With and , the intended gives equal probabilities in both the horizontal/vertical computational basis and diagonal Hadamard basis, just as the mixed state does. In the circular basis , however, the ideal always gives the plus outcome, whereas still gives equal probabilities. These are deductions from the Born rule, not the paper's measured counts. Unequal detector efficiencies and finite samples must be accounted for when interpreting experimental frequencies; the ideal comparison assumes equally efficient detection.
Compare the qubit pure state
with , using the computational basis. Its Bloch vector is : it follows a meridian of the Bloch sphere from the north pole through to the south pole . The inner product with is , nonnegative on this interval. Consequently quantum fidelity, squared quantum fidelity, and trace distance are
At the triple is ; at it is ; at it is . The angle between the Bloch vectors is , while the quantum fidelity uses its half-angle. The pure-state trace distance and fidelity identity becomes the familiar relation .
Figure 1.
A Bloch sphere meridian and the corresponding unsquared fidelity F, squared fidelity Fsq, and trace distance D relative to the north-pole state
. Details.
For equal prior probabilities, the Holevo–Helstrom theorem gives optimal quantum state discrimination success . Along this meridian it rises from to one, with at . This connects the geometric trace distance to the best possible decision from a single preparation; it is a different measurement task from the target-acceptance probability defining squared quantum fidelity.
Choose the Pauli matrices with , and let be an angular frequency. The computational basis is an orthonormal basis of energy eigenstates for the qubit Hamiltonian operator
In this convention is the lower energy eigenstate; the labels describe a basis choice, not a universal ground state/excited state ordering. Start in the Hadamard basis pure state . Then
The first factor in the second expression is a global phase. The ratio of the two probability amplitudes has relative quantum phase , so its sign follows directly from .
Multiplying this density matrix by each Pauli matrix and taking its trace gives the Bloch vector:
The Bloch vector travels counterclockwise around the equator of the Bloch sphere, from toward when viewed from . A computational-basis measurement always has , while the Hadamard basis and eigenbasis measurements give
At , the quantum state is up to a global phase, giving . At , it is up to a global phase, giving . Both retain equal energy measurement probabilities.
Figure 1.
Relative phase rotates a qubit while energy populations stay fixed
. Original ideal-model equatorial Bloch-vector diagram and exact Born-rule probabilities for and initial . The horizontal variable is the dimensionless phase ; no curve is measured data. Details.
At , the time-evolution operator is , so . The physical quantum state ray, its density operator, and every measurement's probabilities have returned. The representative vector returns exactly only at , when . The minus sign is a global phase for this isolated evolution; comparing an evolved branch with an unevolved branch through a controlled unitary gate can make it a relative quantum phase, as explained in global phase of an uncontrolled quantum gate is unobservable.
Qubit state Created 2026-09-24 Updated 2026-10-14
A qubit state specifies measurement probabilities, rather than a pre-existing answer to every possible measurement. For a pure state, normalized vectors differing by a global phase represent the same physical state:
Equivalently, the pure state is a ray: the one-dimensional complex linear subspace spanned by any nonzero representative. Dividing a nonzero vector by its norm fixes its length, but leaves the global phase free. The density operator is unchanged because . In contrast, multiplying only one nonzero component by changes a relative quantum phase and can change measurement probabilities. [ref].
After choosing a global phase, every pure state of a qubit can be written
At or , the parameter does not distinguish physical states: only one component survives. Elsewhere it is the relative quantum phase. The corresponding unit Bloch vector is on the existing Bloch sphere. Its angles describe a space of states; for a photon polarization qubit they are not the photon's position or direction of travel. [ref].
The Born rule in the computational basis gives and . These probabilities discard . In the Hadamard basis , adding or subtracting the probability amplitudes instead gives
This last equality follows by substituting the angular representative. In the basis , the same calculation gives
Thus both the real and imaginary parts of quantum coherence can be observed, using different measurement settings. For example, and both give , but the first gives and the second . A global phase could never cause this difference.
Figure 1.
Identical computational-basis probabilities can hide different relative phases and coherence
. Exact model probabilities for , compared with the incoherent mixture . Each curve requires repeated preparations measured in the indicated basis; these are not experimental data. Details.
For a general qubit state, write its density matrix in the computational basis as
These are exactly the Hermitian, unit-trace, positive semidefinite constraints. Positivity means every eigenvalue is nonnegative, not that every matrix entry is nonnegative. The general definition is given in density matrix. [ref].
For this two-by-two matrix, the explicit constraint follows from its determinant, : with trace one, a nonnegative determinant and real eigenvalues rule out a negative eigenvalue. Its eigenvalues are
The pure states have and eigenvalues ; the mixed states have strict inequality and two positive eigenvalues. For a normalized representative, and . A statistical preparation , with and , averages probabilities, rather than adding probability amplitudes. Such a preparation is mixed if the positive-weight vectors do not all represent the same ray. A reduced density matrix of an entangled pair can also be mixed even when the pair has a pure state. [ref].
For a concrete check, the pure state and the mixed state obtained by preparing with probability and with probability have
Both have trace one and the same computational-basis measurement probabilities. Their eigenvalues are respectively and ; the respective values of their purity of a density operator are and . Their Hadamard basis plus probabilities are respectively and . By contrast, setting would give determinant and eigenvalue : normalized diagonal entries alone do not make a valid qubit state.
The same constraints become especially beautiful in the Bloch ball representation. With the Pauli matrices and the identity operator ,
The eigenvalues are , so the Bloch sphere is precisely the pure state boundary, and is the maximally mixed centre. For each axis , the Born rule gives . This unifies a geometric picture, matrix positivity, and experimental frequencies in one description. For the equatorial family in the phase diagram, and ; replacing it by erases the transverse components and every fringe. See quantum state tomography for how independent ensembles measured along the three axes estimate these components. [ref].
For copies of a normalized pure state , regroup Alice's and Bob's tensor factors. Alice performs a projective measurement of the total number of zeroes, preserving all coherence among strings with that count. The outcome has binomial distribution
Each retained string has the same complex amplitude , so, up to a common phase, the conditional quantum state is
Its equal Schmidt coefficients make it a maximally entangled state of Schmidt rank . Alice sends the count to Bob. They can relabel the corresponding local computational basis strings with local unitary operations, and convert the resulting resource to Bell pairs. Measuring the individual bits instead would reveal the entire string and leave a product state.
Prepare a qubit in , apply a phase gate , and correlate its computational basis states with normalized environment states . Write . After a final Hadamard gate, the environment amplitude accompanying output zero is . Its squared norm is . Thus is the interference visibility, while shifts the fringe. This quantum decoherence map commutes with the phase gate, so placing it immediately before that gate gives the same probabilities.
For a qubit, use the dimensionless Pauli matrices as observables , . Their Pauli matrix multiplication law gives
These observables have eigenvalues ; the physical spin components are , where is the reduced Planck constant, so their standard deviations acquire a factor .
In the computational basis, prepare , an eigenstate of with eigenvalue . Direct multiplication gives
Both Pauli measurements return and with equal probabilities, and the Robertson uncertainty principle is saturated: .
Instead prepare . Now the expectation values are , , so , . The Pauli measurement of is certain, and both sides of the bound vanish. The commutator is still nonzero as an operator: noncommuting observables do not guarantee a positive lower bound independent of the quantum state. This example is useful for distinguishing the algebra of the observables from the expectation values in a particular preparation.
Figure 1.
Pauli standard deviations, their product, and the Robertson bound in two preparations: the same noncommuting observables give bounds of one and zero
. Details.
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].
StoqMA 2026-10-06
StoqMA is a restricted quantum-verifier class using stoquastic circuits and polynomial-size quantum witnesses. A YES instance has a quantum witness accepted with probability at least ; on a NO instance every quantum witness has acceptance at most , with an inverse-polynomial gap . An optimal quantum witness can be chosen with nonnegative amplitudes, since the witness acceptance operator is entrywise nonnegative. The quantum witness is generally a superposition, rather than a computational basis vector. The stoquastic acceptance floor explains the lower limit for a nontrivial soundness promise.