Amplitude amplification Created 2026-09-24 Updated 2026-10-13
Amplitude amplification increases the probability of obtaining an answer accepted by a specified Boolean function. It requires a coherent preparation , its inverse, and a marked-state phase oracle that negates accepted components. Alternating that sign change with a reflection operator about the prepared state directs interference toward the accepted subspace. Brassard, Høyer, Mosca, and Tapp developed the general framework, extending Grover's algorithm beyond a uniform quantum superposition. [ref].
If a normalized quantum state has good amplitude , the product of the reflection in the bad axis and the reflection in the state line rotates its good-bad plane by . After iterations the good probability is
so iterations raise a small good amplitude close to one. Success subsequently oscillates, making the stopping time part of the algorithm.
Compute the exact Grover search on four entries directly. Order the computational basis as and mark . The Hadamard transform prepares amplitudes . The marked-state phase oracle changes these to , whose arithmetic mean is . The Grover diffusion operator performs inversion about the mean:
The three unmarked amplitudes become , while the marked amplitude becomes . All three stages have squared norm one. Here , so and one iteration gives , agreeing with the explicit calculation.
Figure 1.
One Grover iteration on four states: a phase flip followed by reflection about the mean concentrates all amplitude on the marked state
. Details.
Grover's original search paper was submitted on 29 May 1996; its algorithm combines selective sign changes with inversion about the mean. The example exposes the beauty of that construction: a change initially invisible to computational-basis measurement becomes complete cancellation of every wrong answer. [ref].
The marked-state phase oracle is an assumed operation, whose implementation cost must be counted. Computational-basis measurement yields a candidate label, here ; using it to retrieve a record requires the relevant data access. Preparing a quantum superposition does not make all its entries available as classical outputs. The improvement concerns the number of oracle queries needed to obtain an accepted label.
Give Alice the first qubit and Bob the second . Compare the Bell state with a preparation that tosses a fair classical bit and gives both parties its value. Their density operators, written in the computational basis ordered , are
They have identical diagonal quantum state populations. The off-diagonal entries of the Bell state retain quantum coherence between and ; the classical mixture has none in this basis.
If both parties perform a Pauli measurement of , the Born rule gives and for both preparations. Perfect agreement here therefore cannot establish entanglement: an ordinary shared random bit already explains it.
Now both measure , whose normalized eigenstates are and . Changing basis gives
The Bell state again has matching outcomes, each with probability . For either product state or , each of the four outcome pairs has probability , so their classical mixture does too. Equivalently, the Pauli correlator is one for the Bell state and zero for this mixture, while is one for both.
Figure 1.
Joint measurement probabilities distinguish a Bell state from a classical mixture while every local outcome remains uniformly random
. Details.
Taking a partial trace gives for both preparations. Thus every measurement confined to Alice's system has the same statistics in the two cases, and so does every measurement confined to Bob's. They reveal the difference by comparing records through classical communication. Conditional on Alice's result, Bob can predict a matching result for the Bell state; without that result, his outcomes remain evenly split. An uncommunicated local quantum channel, including a measurement with its outcome discarded, leaves his reduced density matrix unchanged. This is quantum no-signalling, even when conditional states change. [ref]
The Von Neumann entropy makes the joint-versus-local distinction numerical. With base-two logarithms, the Bell state has eigenvalues , giving , whereas the mixture has , giving . Both have . Their quantum mutual information is consequently two and one bits, respectively. The value two is not two readable classical bits in either local qubit: the matching records have ordinary mutual information one bit in both cases. Random records can come from a globally pure state. [ref]
These two matching-axis measurements distinguish the specified preparations; they alone are not a test of a Bell inequality. A local hidden-variable theory could assign shared random answers separately to these two axes. Bell theorem concerns incompatible correlations across a suitable larger collection of measurement settings. Bell's 1964 paper established the obstruction for local hidden-variable descriptions of the predicted correlations. [ref]
Choose the computational basis , for a spin one-half qubit. On the Bloch sphere, let and use the normalized quantum state
This is the eigenstate of , where are the Pauli matrices. To make it an instantaneous ground state, take the model Hamiltonian operator with constant . Its energy eigenvalues are and , so its spectral gap is everywhere. The spin points along ; this explicit convention fixes the sign of the Berry phase.
Keep the polar angle fixed and increase the azimuth from to , slowly enough for the adiabatic theorem. The state vector written above is periodic in . Directly differentiating gives
Thus the azimuthal Berry connection is and its line integral is
The north polar cap has oriented solid angle , positive for increasing . Reversing the loop reverses the Berry phase. The opposite spin eigenstate has the opposite Berry phase modulo .
Figure 1.
A 60-degree latitude on the Bloch sphere encloses a north polar cap of solid angle pi
. Details.
At , the solid angle is and the Berry phase is . At , the solid angle is and the Berry phase is . At , the loop collapses and . At , the same expression gives : the Bloch vector stays at the south pole, while this representative is . Its winding is only a choice of global phase, so the physically relevant phase factor is again one. The displayed formula is a continuous, unwrapped representative, not a unique real-valued observable.
Bit-flip repetition code Created 2026-09-28 Updated 2026-10-14
The -qubit bit-flip repetition code stores one logical qubit in and . Its stabilizer generators are for , and its logical operators are and . Interchanging the Pauli X gate and Pauli Z gate gives the phase-flip repetition code. For odd , majority-vote decoding of a repetition code corrects up to physical Pauli X gate errors, assuming ideal operations and a noise family containing only these bit flips.
For , prepare two quantum ancillas in and apply controlled-NOT gates from the input qubit to each of them. By linearity, encoding sends
This does not produce , which would contain cross terms. For example, encoding produces , whereas three independent copies would have eight equal computational basis amplitudes. The encoding creates quantum entanglement when both coefficients are nonzero and respects the no-cloning theorem.
The three-qubit bit-flip syndrome table corrects the family and its entire linear span, as specified by the Knill--Laflamme condition. It cannot correct arbitrary errors on one physical qubit: the phase flip
commutes with both checks and acts as logical . In particular, it takes the encoded to the orthogonal encoded with error syndrome . Thus its full quantum code distance is one, despite correcting one error of the restricted Pauli X gate type. The Shor code, Steane code and five-qubit error correcting code provide protection against arbitrary one-qubit errors.
Suppose a known list of distinct -bit strings is available and computational basis transpositions on qubits have polynomial-size implementations. Start with the uniform superposition state of index labels , leaving the data zero. First swap with for each nonzero . Next, for each , swap with . Distinct index labels separate the first-stage pairs, and distinct data strings separate the second-stage pairs. Thus no later transposition disturbs an earlier term. At most transpositions prepare the uniform data state and return the quantum ancilla to zero. For the quantum circuit has polynomial size. This assumes the list is available; a membership predicate alone does not supply it.
Choose the qubit computational basis , also called the basis, and the Hadamard basis , also called the basis. Compare a coherent preparation of with choosing or at random with equal probabilities and discarding that label:
These are original ideal preparation models. Their -basis probabilities are both , because their quantum state populations agree. Their -basis probabilities are respectively and . Indeed , whereas . The missing off-diagonal quantum coherence therefore changes a prediction that the common populations cannot determine.
Figure 1.
Coherent preparation and random mixing agree in the Z basis but differ in the X basis
. Original ideal qubit preparation and detection branches. The random-choice branches are mutually exclusive trials; forgetting the label averages probabilities without recombining probability amplitudes. Each measurement branch uses a fresh preparation. The displayed Born rule probabilities assume ideal detection and are not measured counts or the apparatus of the experiment below. Details.
For a relative quantum phase , the coherent family instead has
The last formula follows by adding or subtracting the two probability amplitudes before taking the squared modulus. At , the state is and the outcomes switch to , while the outcomes remain . In contrast, changes both components by the same global phase and retains the outcomes . In photon polarization, the identification , makes and the two orthogonal diagonal linear polarizations; these labels describe measurement bases, not spatial axes for photon spin.
Figure 2.
A circle of global-phase representatives gives one state, while a relative sign changes X outcomes
. Original ideal model. The top circle is the complex number multiplying the entire vector; it is not a Bloch sphere or a path through distinct physical states. All its representatives map to the same density operator. Below, changing the relative quantum phase from zero to gives different density operators and complementary -basis probabilities. No experimental observations are plotted. Details.
Even perfect statistics in one basis cannot certify a preparation. The above data fit both density matrices. Conversely, distinct preparation histories can yield the same quantum state:
The off-diagonal terms cancel in the right-hand ensemble. Every measurement on the qubit alone then has identical probabilities for those two histories. A retained classical label would allow conditioning on different members of the quantum state ensemble; it is extra information beyond the unlabelled density operator.
For a graph state , measuring vertex in the computational basis with result gives the normalized state
Each Controlled-Z gate from to a neighbour acts as after projecting onto ; all other edges remain unchanged. The projection contributes , so either result has probability . For a four-cycle, deleting one vertex leaves a path and adds byproducts on its two endpoints.
Dephasing channel Created 2026-09-28 Updated 2026-10-14
A dephasing channel suppresses off-diagonal entries of a density matrix in a preferred basis while preserving quantum state populations. Complete dephasing is identical to a projective measurement in that basis with its outcome discarded.
For the Bell correlations versus a classical mixture example, completely dephasing Alice's qubit in the computational basis maps to . It preserves their perfect agreement and each reduced density matrix, yet destroys the correlation. This is why testing only populations can miss damage to a quantum memory: the stored quantum coherence may have disappeared while every preferred-basis measurement still looks correct. The joint Von Neumann entropy rises from zero to one bit, although each local entropy stays fixed.
Expand a quantum circuit matrix element by inserting computational basis resolutions between gates, then enumerate the intermediate strings depth first. The active stack stores one basis label and accumulator per quantum circuit layer, using polynomial space for polynomially many qubits and gates. Recompute entries rather than storing an exponential matrix or state vector. The output probability requires the Born rule sum of squared amplitude moduli.
Dicke state Created 2026-10-14 Updated 2026-10-14
The -qubit Dicke state with excitations is the normalized equal superposition
where is the Hamming weight in the computational basis. The binomial coefficient counts the mutually orthogonal summands, proving normalization. Every permutation of the qubits leaves the vector unchanged. Splitting the sum according to the first bit and using gives
Terms with zero coefficient are omitted at the endpoints. This recursion is useful for partial traces and for distributing a logical qubit among many symmetric physical qubits.
Entanglement distillation 2026-10-14
Entanglement distillation uses local operations and classical communication on many noisy entangled states to produce fewer high-fidelity Bell pairs. It is also called entanglement purification. The protocol may fail or abort; naming a purification step does not guarantee successful output for arbitrary inputs. If the output is an exact pure state of Bell pairs, every purification of a density operator factors between those pairs and the environment, so measuring each pair in the computational basis gives a shared uniform bit independent of an eavesdropper. Approximate privacy follows when the entire retained output is sufficiently close to that pure target. A separable quantum state cannot be distilled into a Bell pair by LOCC, because each local branch preserves separability.
When two density operators are commuting elements, choose a common orthonormal eigenbasis and write , . Their quantum fidelity becomes the classical overlap of the two probability distributions, while their trace distance becomes total variation distance:
This follows by computing the positive square root of an operator entry by entry in the common eigenbasis. For the qubit mixed states and ,
The two contributions to quantum fidelity are about and . In contrast, the chance that two independent computational basis measurements, one on each preparation, print the same label is . That particular event has a specified probability; neither nor is that probability.
Figure 1.
Commuting mixed-state probabilities, square-root overlap contributions to unsquared fidelity F, squared fidelity Fsq, and trace distance D
. Details.
Here trace distance means an equal-prior quantum state discrimination success of by the Holevo–Helstrom theorem. Measuring in the common computational basis and guessing on outcome zero and on outcome one achieves . Also : the pure-state trace distance and fidelity identity is an equality for pure states, rather than a formula for arbitrary mixed states.
Label a four-cycle . Measure vertex in the computational basis with result , then vertex in the equatorial qubit measurement basis at angle with result . Graph-state vertex deletion and one-bit teleportation leave
Final computational basis measurements with raw results therefore simulate the ideal circuit on after the classical correction , . The output probability distribution is correct in every prior branch; no physical Pauli frame correction is needed.
Let , let be the marked-state phase oracle, and replace reflection about by reflection about a known computational basis vector . Define , so and . The resulting Grover iterate obeys
because the two diagonal operators commute. Thus the good and bad uniform vectors are replaced by their signed vectors , with exactly the same Grover rotation angle. Initializing in gives . Computational-basis measurement probabilities are unchanged because only multiplies amplitudes by signs.
Hadamard gate Created 2026-09-24 Updated 2026-10-14
The Hadamard gate is the unitary operator
where is the identity operator. It maps the computational basis to the Hadamard basis:
These outputs have equal computational-basis measurement probabilities, but their relative quantum phase differs. Applying another Hadamard gate sends them to different definite outputs. Calling this gate a classical coin toss would discard precisely the information that makes this possible. [ref].
Starting from , compare two quantum circuits, reading matrix products from right to left:
Here is the Pauli Z gate. After the first Hadamard gate, the probability amplitudes are . Inserting changes them to without changing their squared magnitudes. At the final gate, the contributions to output zero cancel and those to output one add. Without , cancellation occurs at output one instead. This is controlled interference, with the quantum phase determining which answer emerges.
The same calculation works for any phase gate :
For example, gives , while gives . The output-one amplitude at is : its two complex contributions add before the Born rule is applied. A phase gate alone leaves the populations unchanged; recombination converts its relative quantum phase into observable probabilities.
Figure 1.
Hadamard interference: a relative phase changes output probabilities through complex amplitude addition; the dotted circle traces the output-one amplitude as the phase varies
. Details.
If quantum decoherence completely removes the computational basis coherence between the gates, the intermediate density matrix becomes . Both the phase gate and final Hadamard gate leave unchanged, so for every . The disappearing fringe explains why preserving quantum coherence matters: it enables the gate sequence to carry phase information into the final measurement.
Hadamard transform Created 2026-10-13 Updated 2026-10-18
The normalized Hadamard transform maps a vector indexed by binary strings through entries , where the dot product is evaluated modulo two. It is its own inverse and an orthogonal transformation, hence also a unitary operator on complex input vectors. The Hadamard gate is the quantum case, and the Hadamard basis is the image of the computational basis. The Walsh-Hadamard transform gives the same tensor product construction.
For two qubits, applying one Hadamard gate to each prepares the uniform quantum superposition
Each probability amplitude is , so each computational-basis measurement outcome has probability . Applying the Hadamard transform again reconstructs : signed contributions cancel at the other three outputs. Its usefulness lies in combining simple local quantum gates into an operation on exponentially many amplitudes. Extracting useful information still requires an appropriate subsequent transformation and measurement.
Helstrom measurement for the zero and plus states Created 2026-09-24 Updated 2026-10-14
Suppose one qubit is prepared in either of the known pure states and , with equal prior probabilities. Measuring in the computational basis seems natural, but a tilted projective measurement gives better quantum state discrimination. The two density operators and their difference are
The Pauli matrices give , and the eigenvalues of are . Their absolute sum gives trace distance , agreeing with trace distance between qubit states.
The positive spectral projector points along the unit Bloch vector :
The outcome labels and here refer to the sign of the eigenvalue of ; they do not denote a Hadamard basis measurement. Guess after and after . This sign choice is the equal-prior Helstrom measurement for two pure states, a case of the Holevo–Helstrom theorem. [ref]
An explicit orthonormal basis for this projective measurement is
with . Thus the real coefficient rotation angle is relative to the computational basis, while the Bloch vector of is tilted by from the positive axis toward negative . State-vector and Bloch sphere angles differ by a factor of two.
Write and , so . The Born rule gives the conditional outcome probabilities
The event has probability gap , attaining the variational characterization of trace distance. Both preparations are identified correctly with conditional probability , so
For comparison, a projective measurement in the computational basis has conditional outcome probabilities on and on . Guess zero on outcome zero and plus on outcome one. The average success is
and the measured total variation distance is only . The optimal tilted projective measurement gains about in absolute success probability by balancing the two conditional error rates instead of identifying perfectly at the expense of .
Figure 1.
Conditional outcome probabilities and equal-prior success for Z and optimal Helstrom measurements of zero versus plus
. Details.
These are statistics for alternative measurements on independently prepared copies. Applying first and then the tilted projective measurement is a different experiment, because the first measurement in quantum mechanics changes the density operator.