Hadamard gate
The Hadamard gate is a single-qubit quantum gate that transforms computational-basis states into equal superpositions with relative phase differences.
Building Quantum Software with Python
The Hadamard gate is a single-qubit quantum gate that transforms computational-basis states into equal-weight superpositions with relative phase differences.
- How it is used
- Prepares uniform amplitude distributions and converts phase-encoded information into measurement-visible magnitude differences.
- How deep it goes
- Derives the scaled sum-and-difference amplitude rule, visualizes pair recombination, and implements single- and multi-qubit circuits.
- Examples
- Demonstrates fair-coin sampling, an eight-outcome uniform state, phase encoding of 273.5, and recovery of binary 1101.
- What you can do after
- Apply it via a simulator circuit to create uniform states and expose phase-encoded angles through outcome probabilities.
Read how Building Quantum Software with Python explains Hadamard gate →
Quantum Programming in Depth
The Hadamard gate is a single-qubit quantum gate that creates equal superpositions from computational-basis states.
- How it is used
- Uses basis switching to turn a single-qubit unitary-identification problem into a measurement of distinguishable outcomes.
- How deep it goes
- Explains basis conversion through a concrete gate sequence and measurement, without developing implementation code or broader gate theory.
- Examples
- Demonstrates the sequence XXX versus HXH and identifies the unknown gate through final measurement results.
- What you can do after
- Apply the Hadamard gate within a sequence that distinguishes X and H using one qubit and measurement.
Read how Quantum Programming in Depth explains Hadamard gate →
Related concepts
- inverse quantum Fourier transformused by · The inverse quantum Fourier transform is the inverse unitary transformation of the quantum Fourier transform, mapping encoded phase information toward computational-basis information.
- uniform distributionproduces · A uniform distribution assigns equal probability to each outcome in a discrete support or constant probability density across a continuous interval.
- quantum gatekind of · A quantum gate is an operation that transforms the state of one or more qubits, typically represented by a unitary transformation.
- quantum superpositionproduces · Quantum superposition is a quantum state that coherently combines multiple basis states with associated probability amplitudes.
- iterative phase estimationused by · Iterative phase estimation is a quantum algorithm that estimates a unitary's eigenphase by repeatedly sampling a control-qubit circuit.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

