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.
Basic measurement 2026-10-25
A rank-one projective measurement associated with an orthonormal basis . For a density matrix , outcome has probability and leaves the measured system in the pure state whenever that probability is nonzero. It can be implemented by mapping this orthonormal basis to the computational basis with a unitary transformation and performing a computational-basis measurement.[ref]
Bell correlations versus a classical mixture Created 2026-10-14 Updated 2026-11-05
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.
Collisional phase gate 2026-10-25
A two-qubit gate in which an interaction shifts the energy of a selected joint computational basis state and thereby accumulates a relative quantum phase. With Hamiltonian operator , where has units of energy, an interaction time gives with . The selected basis state is part of the convention: this gate differs from the usual Controlled-Z gate at . Conjugation by a Pauli X gate on the first qubit gives , because the conjugation interchanges and .
For a qubit, computational basis dephasing with complex overlap maps to and preserves the diagonal entries. Conjugation by the phase gate maps the same entry to . Since these scalar factors commute, their quantum channels commute on every density matrix. More directly, an interaction and a diagonal phase gate give the same joint quantum state in either order on the specified initial environment state. This need not hold for an interaction that changes the quantum state populations.
Computational basis Created 2026-09-28 Updated 2026-11-05
For qubits, the computational basis is the orthonormal basis labelled by bit strings.
Measuring the transmitted qubit in the computational basis and forwarding its measured state produces a dephasing channel for users who do not know the outcome. For a Bell state , the reduced state becomes . It retains perfect anticorrelation while destroying correlation. Thus a single perfectly correlated key basis need not reveal an intercept-resend attack; incompatible-basis correlation tests can.
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.
Depth-first quantum circuit path summation Created 2026-10-06 Updated 2026-11-05
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.
Diagonal Hamiltonian Created 2026-09-28 Updated 2026-11-05
A diagonal Hamiltonian is diagonal in a specified product basis, usually the computational basis. Every basis state is therefore an energy eigenstate, and optimization of its diagonal entries becomes minimization of the corresponding classical cost function.
Dicke state Created 2026-10-14 Updated 2026-11-05
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-assisted nondemolition parity measurement Created 2026-10-07 Updated 2026-11-05
Share a Bell state meter pair, apply local system-to-meter CNOT gates, and measure each meter in the computational basis. The parity of the local meter records measures system while preserving all coherence within either parity sector. The complete tuple of local records has Kraus operator . Each local record is uniform, and the nonlocal result requires local operations and classical communication to compare records. A local Hadamard gate conjugation supplies the corresponding measurement.
Entanglement distillation Created 2026-10-14 Updated 2026-10-25
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.
With a fixed reference , exact overlap readout on Bob's remotely prepared state distinguishes the computational basis from the diagonal basis in one use, by the displayed disjoint squared-overlap sets. This would reveal Alice's spacelike basis choice. The argument rules out even deterministic exact overlap magnitude, avoiding the additional unphysical global-phase dependence of a raw complex inner product.
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.