The displayed Bernstein-Vazirani algorithm prepares its ancilla qubit in the computational-basis state before the first Hadamard gate. At the function oracle it is therefore the eigenstate of the Pauli X gate, which enables phase kickback. Preparing instead yields at the function oracle; target flips leave this state unchanged, so the data contain no information about .
The Hadamard-conjugated linear oracle makes the more general statement transparent. With zero data and initial ancilla qubit , the full fixed quantum circuit outputs
For nonzero , the correct data outcome has probability . To obtain exact identification for all , this preparation must have , so it is up to global phase. This is a condition on the prescribed preparation circuit: any alternative quantum state preparation that supplies at the function oracle is equivalent.
For the binary phase representation of a Pauli string, these local rules implement for the Hadamard gate and the phase gate . In particular , so the phase update differs in sign from forward conjugation. Use the old input bits, and reduce modulo four.
With two Hadamard gates as mixers, an unobstructed zero-phase arm gives only port 0 for upper-port incidence. An ideal absorber in arm 1 acts on the intermediate superposition . It absorbs with probability ; its no-absorption branch is the unnormalized state . Recombination gives amplitude at each surviving output, so the dark-port success probability is . The result assumes a calibrated transparent alternative and an ideal absorber; a dark-port event alone does not establish those apparatus assumptions.
Apply a Hadamard gate to the first qubit, then a controlled-NOT gate from the first to the second. This maps a computational-basis state to the Bell state with phase bit and parity bit . Its inverse uses the same gates in reverse order because each gate is self-inverse but they do not commute. Applying the forward sequence twice is not generally a decoding operation.
The Bernstein-Vazirani algorithm identifies the coefficient string of a linear Boolean function with one Boolean quantum oracle call. It contrasts with the calls required by the classical query complexity of linear Boolean function identification. Prepare the data qubits at and an ancilla qubit at , apply a Hadamard gate to every wire, query the function oracle, and apply the Hadamard gates again. The full output is .
The mechanism is Bernstein-Vazirani phase kickback. The Pauli X gate has eigenvector with eigenvalue . Thus the target flips become relative quantum phases on the data, giving
The final Hadamard transform maps this product to , so computational-basis measurement recovers every coefficient with certainty. The ancilla preparation for the Bernstein-Vazirani algorithm ensures the required minus sign, and the Hadamard-conjugated linear oracle gives an exact quantum circuit interpretation. One query is optimal for , since without a query the output cannot depend on the unknown string.
Born rule Created 2026-09-24 Updated 2026-10-18
The Born rule connects a quantum state to measurement probabilities. Let be a complete orthonormal basis, finite or countably infinite, for a Hilbert space, and let
An ideal measurement distinguishing these basis vectors returns label with probability
This assignment is a physical measurement rule. Its compatibility with total probability one follows from orthonormality and normalization:
The probabilities are the squared moduli, not the amplitudes themselves or the squares . [ref].
If the basis is an eigenbasis of an observable, the reported numerical value is its eigenvalue. Several vectors can share one eigenvalue; the probability of that value is then the sum over the corresponding basis labels. More generally, a projective measurement with orthogonal projections assigns
for a pure state and a general density matrix , respectively. This also covers mixed states and degenerate eigenspaces. The Born rule determines outcome statistics; the ideal conditional state change is specified separately by the Lüders rule. See projective measurement for that formulation and its assumptions. [ref].
For a worked example, take the normalized qubit quantum state
The squared moduli add to . A computational-basis measurement, equivalently a measurement of the Pauli matrix, has
These probabilities do not depend on the relative quantum phase . Now choose the Hadamard basis
whose vectors are eigenstates of the Pauli matrix, also used by the Pauli X gate. The new probability amplitudes and probabilities are
Both probabilities are nonnegative and their sum is one. The relative quantum phase becomes visible because the two probability amplitudes add before their squared modulus is taken:
  • At , and .
  • At , .
  • At , and .
Figure 1.
The same qubit preparation has phase-independent Z probabilities and phase-sensitive X probabilities
. Details.
A Hadamard gate followed by a computational-basis measurement realizes these statistics, since , respectively. Compare the two bases using fresh, identically prepared copies: a preceding measurement may change the state. The quantum superposition section shows why replacing the preparation by the mixed state keeps the statistics but gives for every .
The usefulness of the Born rule is this conversion from linear algebra to experimental predictions: calculate overlaps in the basis actually measured, then take squared moduli. Its appealing geometry is that changing basis redistributes probability while preserving total squared norm. The same rule relates an energy eigenstate expansion to an energy measurement and a position wavefunction to a probability density.
Born's 1926 paper on quantum scattering interpreted the outgoing-wave coefficients in terms of the probabilities of collision outcomes; a corrective footnote specified proportionality to the square of the amplitude. This is a historical scattering formulation, rather than the general density matrix formula above. [ref]; [ref].
Controlled-Z gate 2026-09-29
The controlled-Z gate is . Conjugating the target of a controlled-NOT gate by Hadamard gates turns controlled-NOT into controlled-Z.
Deutsch algorithm 2026-10-14
The one-input Deutsch algorithm determines whether a Boolean function is constant or balanced using one Boolean quantum oracle call. Initialize the input qubit in and the answer qubit in . Quantum phase kickback changes the input to . A Hadamard gate and computational-basis measurement therefore return the parity with certainty.
If the input qubit of the Deutsch algorithm acquires conditional environment states with overlap between its two Hadamard gates, its fixed zero-for-constant, one-for-balanced rule succeeds with probability . A known phase can be compensated before the last Hadamard gate, raising the success probability to . An orthogonal pair of environment states gives and destroys all information in the input qubit about the answer; unit overlap modulus preserves coherence up to a known phase.
Dicke-resource telecloning Created 2026-10-14 Updated 2026-10-20
For odd , a symmetric quantum teleportation resource can encode an unknown qubit into . Begin with , apply a controlled-NOT gate from the input to the sender's resource qubit, apply a Pauli X gate to that resource qubit and a Hadamard gate to the input, and measure those two qubits. The four unnormalized remaining vectors are , , and . Each outcome has probability . Since interchanges and , and acts as logical up to the common phase , local Pauli corrections make the output independent of the result. The one-qubit reduction of Dicke-state superpositions gives
For this distributes imperfect copies, as required by the no-cloning theorem. For it reduces to exact quantum teleportation.
In most-significant-bit-first order, let and . On a computational-basis state, process wire with a Hadamard gate, then controlled phase gates controlled by unprocessed wire for each . Wire becomes . Reversing the final wire order yields the positive-exponent quantum Fourier transform. There are Hadamard gates and controlled phase gates. Physical reversal costs swap operators, each expressible as three controlled-NOT gates, themselves implemented with Hadamard gates and a Controlled-Z gate. Thus the entire construction uses gates from the specified family.
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.
Share a GHZ state on and let the unknown input be . Alice applies CNOT from to , then a Hadamard gate to , and measures computationally, giving . Charlie measures in the Hadamard basis, giving . Bob's conditional state is
up to a global phase. Alice's two bits and Charlie's one bit therefore specify Bob's inverse correction .
To prove the phase rule, write . After Alice's result, is . Taking Charlie's Hadamard basis partial inner product multiplies its second term relative to its first by . The remaining common phase is , which is physically irrelevant. All eight result triples have probability . Charlie's record localizes a known-phase Bell pair, allowing the standard Bell-basis teleportation identity to complete the transfer.
GHZ preparation with Hadamard and controlled-Z gates Created 2026-10-06 Updated 2026-10-14
For , apply a Hadamard gate to one qubit, then controlled-NOTs from it to all others. Replacing each controlled-NOT gate by a target Hadamard, a Controlled-Z gate, and another target Hadamard uses allowed gates. Each one-qubit reduced state is , proving entanglement across each qubit-versus-rest bipartition.
Multiplying a target unitary operator by changes the controlled operation by a relative quantum phase on its control-one branch. Substitution in proves the displayed identity. In particular, rather than the identity operator. Preparing the control at and applying a final Hadamard gate distinguishes from with certainty, independently of the target quantum state. The global phase of an uncontrolled quantum gate is unobservable, but a specified controlled unitary gate provides a branch relative to which that phase can be measured.
Let be the Boolean quantum oracle for a linear Boolean function, and put . The CNOT gates implement , where the data wires control the ancilla qubit. CNOT control reversal in the Hadamard basis and imply the exact unitary operator identity
Here on strings is bitwise exclusive or. To conjugate a product, insert between its factors; each factor reverses its control and target, and the unused Hadamard gates cancel. The global phase is exactly . In particular, the identity holds on arbitrary quantum superpositions, not only on the initialized inputs of the Bernstein-Vazirani algorithm.
For a controlled unitary gate , Hadamard gates on the target before and after the gate produce . Proof: the control-zero branch applies , while the control-one branch applies . Linearity extends the identity to arbitrary quantum states. Since too, a pair of controlled Hadamard gates surrounding the same target operation can be replaced by ordinary target Hadamard gates. No single controlled Hadamard gate is thereby identified with an ordinary one.
Hadamard gate Created 2026-09-24 Updated 2026-10-20
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.
For , direct matrix multiplication by the Hadamard gate gives coefficients , proving the displayed identities. This exchanges the two Pauli eigenstates of the Pauli Y gate and agrees with . The phases in the formula are global phases for each separate state; the relative phase inside each state is essential.
In a Hadamard gate, phase gate, Hadamard gate sequence starting from , let a population-preserving interaction correlate with a normalized environment state between the two Hadamard gates. Use and . The environment-valued output-zero coefficient is , whose squared norm is the displayed probability. The modulus controls contrast, while shifts the quantum interference fringe. For there is no mixing; a deterministic relative quantum phase accounts for the shift.