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.
The fast Hadamard transform computes multiplication by a tensor power of the two-by-two Hadamard matrix using repeated pairwise sums and differences. For input amplitudes, one stage replaces each selected pair by , with factors of when using the unitary convention.
There are stages, each requiring order arithmetic operations, giving order classical work instead of a generic dense matrix multiplication. A quantum circuit implements the corresponding unitary with one Hadamard gate on each of qubits. This compact circuit description does not imply that all resulting amplitudes can be read out in one measurement; the output statistics still follow the Born rule.
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.
For , conjugation by the Hadamard gate turns a relative quantum phase into an -axis Bloch vector rotation. In the convention , the map is . An -polarized input is unchanged, whereas a -polarized input gives a sinusoidal population difference. A maximally mixed input remains maximally mixed under every unitary time evolution.
A flat reference over adjacent Fock states has overlap with a one-photon shift and with a two-photon shift. These overlaps, obtained by counting shared number states, determine the reduced qubit channel of a number-conserving Hadamard interaction. For , its squared fidelity with the desired pure output is for input Bloch vector . Its worst-case infidelity is because . At the two-shift overlap is zero, not , and the fidelity is . Broad coherent number support, rather than merely a large fixed photon number, suppresses distinguishability of the outgoing field states.
A uniform quantum superposition assigns the same probability amplitude to each computational-basis state. For qubits, there are such states.
The uniform quantum superposition of all -bit strings is
The factor follows from normalization: squared amplitudes must sum to one. This state is the product state , so a large number of nonzero basis amplitudes does not by itself imply entanglement. A computational-basis measurement returns one string with probability ; it does not reveal all amplitudes. [ref]
On qubits, the Walsh-Hadamard transform satisfies
where the dot product is evaluated modulo two.
The Hadamard basis is an orthonormal basis of one qubit consisting of the two eigenstates of the Pauli X gate.
The qubit Hadamard basis consists of and .
The two states have the same computational-basis measurement probabilities, but opposite relative signs. A Hadamard gate maps them to and , so applying it before a computational-basis measurement distinguishes the states. Relative phase is therefore physically accessible even when one chosen measurement has identical outcome probabilities. [ref]

Articles by others on the same topic (1)

The Hadamard transform is a mathematical operation used in various fields, including quantum computing, signal processing, and information theory. It is a specific kind of unitary transformation that takes an input vector and transforms it into another vector of the same dimension. The Hadamard transform is particularly useful because it creates superposition states in quantum computing and can be implemented efficiently.