Hadamard Gates: Introducing Superposition into Quantum Circuits
I. Introduction
Quantum computing stands at the forefront of technological innovation, promising exponential computational power and capabilities. Unlike classical computing, which relies on binary bits representing 0s and 1s, quantum computing harnesses the principles of quantum mechanics to manipulate quantum bits or qubits. These qubits can exist in a superposition state, representing multiple states simultaneously and performing complex computations in parallel.
Central to the functioning of quantum computers are quantum gates, analogous to classical logic gates but operating on quantum states. Among these gates, the Hadamard gate holds a pivotal role in quantum algorithms and circuit design. Named after the French mathematician Jacques Hadamard, this gate plays a fundamental role in creating superposition and manipulating quantum states.
This article delves into the concept, usage, and physical implementation of Hadamard gates in quantum computing. We will explore the mathematical underpinnings of Hadamard gates, their application in quantum circuits, and the various techniques used to realize them in physical quantum computing platforms. Through this exploration, we aim to provide a comprehensive understanding of the significance of Hadamard gates in the realm of quantum computing and their implications for future advancements in the field.
II. Usage of Hadamard Gates in Quantum Circuits
A. Introduction to Quantum Circuits and Their Components
Quantum circuits serve as the blueprint for executing quantum algorithms and computations. These circuits consist of quantum gates, which manipulate the quantum states of qubits, and classical control operations, which guide the computation flow.

Hadamard gates are indispensable components of quantum circuits. They transform classical bits into quantum bits (or qubits), contributing to the creation of superposition and the implementation of quantum algorithms.
Bridging the Classical and Quantum Worlds
Quantum circuits receive input from the classical world. Typically, information is fed into a quantum computer as a string of 0s and 1s, which is what you would expect. Similarly, a quantum computer writes the output of its calculations as classical bits that classical computers and human beings can interpret.
However, the quantum computer follows the rules of quantum mechanics, and classical bits must be transformed into their quantum analogs before they can be used in quantum computations. This is where the Hadamard gate comes into the picture. As input, a Hadamard gate takes a classical bit in a 0 or 1 state and transforms it into a superposition of ∣0⟩ and ∣1⟩.
A superposition of two or more states allows a quantum computer to process many inputs in one computational step, which is its real power.
The <bra | ket> notation is widely used in quantum algebra, and while the states 0 and 1 denote the same physical quantities as ∣0⟩ and ∣1⟩, we will use the <bra | ket> notation in a quantum context while the 0 and 1 will be reserved to the classical context.
B. Role of Hadamard Gates in Creating Superposition
Hadamard gates are crucial in transforming classical bits into qubits by introducing superposition. To understand this transformation, let’s first define classical bits and qubits.
In classical computing, a bit is the fundamental unit of information, coded as a 0 or 1. Intuitively, a bit holds information equivalent to the answer to a YES/NO question.
C. Examples of Quantum Algorithms Utilizing Hadamard Gates
Several prominent quantum algorithms leverage Hadamard gates to achieve their objectives. For instance, in the Deutsch algorithm, Hadamard gates are used to create superposition states that enable the algorithm to determine whether a function is balanced or constant with a single query to the oracle. Similarly, Grover’s algorithm employs Hadamard gates to amplify the amplitude of the target state, leading to a quadratic speedup in searching unsorted databases. These examples highlight the versatility and effectiveness of Hadamard gates in quantum algorithm design.
D. Combinatorial Effects of Multiple Hadamard Gates in Circuits
The combinatorial effects of applying multiple Hadamard gates in quantum circuits contribute to the complexity and richness of quantum computation. As Hadamard gates transform basis states into superposition states, cascading multiple Hadamard gates leads to intricate interference patterns that govern the behaviour of quantum algorithms. Understanding and harnessing these interference effects are crucial for optimizing quantum circuits and designing efficient quantum algorithms.
III. Concept Behind Hadamard Gates
A. Mathematical Representation of Classical Bits
In quantum computation, classical bits are represented using quantum bits (qubits), typically by employing a specific encoding scheme known as the computational basis. The computational basis consists of two orthogonal states, usually denoted as ∣0⟩ and ∣1⟩, corresponding to the classical bit states 0 and 1, respectively.
The matrix notation of classical bits in quantum computation involves representing these two basis states as column vectors in the following manner:
These column vectors are often called ket vectors in quantum mechanics notation. The motivation behind representing classical bits in quantum computation using matrix notation is twofold:
By representing classical bits as qubits using matrix notation in quantum computation, the integration of classical and quantum concepts is streamlined, enabling the development of hybrid quantum-classical algorithms and protocols that leverage the strengths of both computing paradigms.
B. Mathematical Representation of the Hadamard Gate
The Hadamard gate is applied to the basis states |0> and |1> to create superposition states. The following matrix represents the Hadamard gate:
C. Matrix Properties of Quantum Gate
The matrix representation of the Hadamard gate was derived based on its desired properties and its action on the basis states of a single qubit. The Hadamard gate is designed to create superposition by transforming the basis states ∣0⟩∣0⟩ and ∣1⟩∣1⟩ into superposition states with equal probability amplitudes.
Quantum gate matrices, like any matrices representing linear transformations, must adhere to several general rules to ensure they preserve the properties of quantum states and operations. These rules are fundamental in quantum computation and reflect the principles of quantum mechanics. Below is a summary of those rules:
Normalization
The action of a quantum gate matrix on a quantum state should preserve its normalization, meaning that the sum of the squares of the absolute values of the amplitudes of all possible outcomes should equal 1. This ensures that the probabilities of all possible outcomes sum to 1, consistent with the probabilistic interpretation of quantum mechanics.
Linearity
Quantum gate matrices must represent linear transformations, meaning that they satisfy the properties of additivity and homogeneity. Additivity implies that applying a gate to a linear combination of quantum states yields the same result as applying the gate to each state individually and then combining the results. Homogeneity means scaling the input state by a complex scalar scales the output state by the same scalar.
By adhering to these general rules, quantum gate matrices ensure the consistency and validity of quantum operations and maintain the principles of quantum mechanics throughout quantum computations.
IV. Transformation of Basis States by the Hadamard Gate
A. Applying Hadamard Gate to |0>
Let’s apply this matrix to the basis states ∣0⟩ and ∣1⟩:
Which we can also write as:
So, applying the Hadamard gate to ∣0⟩ results in the superposition state in 2.d.
B. Applying Hadamard Gate to |1>
Likewise, we can calculate the result of applying the Hadamard gate to ∣1⟩.
Which we can also write as:
This result is similar to that obtained in 2.d except for the minus sign. This tells us that the probability of measuring ∣0⟩ or ∣1⟩ is the same (50%; see Appendix for more info). However, the negative signs allow the two qubits to produce interference patterns.
C. Applying Another Hadamard Gate
Applying two Hadamard gates to a quantum state in tandem restores the original state, regardless of whether the initial state was ∣0⟩ or ∣1⟩. This behaviour demonstrates the reversible nature of quantum gates and their ability to manipulate quantum states in a controlled manner.
Using the properties of the Hadamard gate from 2.d and 2.g, we get:
By the same rules, we can demonstrate that two Hadamard gates applied to ∣1⟩ in sequence will restore the state to ∣1⟩.
V. Physical Implementation of Hadamard Gates
A Hadamard gate can be realized using two photon sources and a beam splitter in a photonic quantum computing setup. Photonic quantum computing relies on the properties of photons, such as direction and polarization, to encode and process quantum information.

Here’s how a Hadamard gate can be realized using two photon sources and a beam splitter:

In the case of a single beam splitter, a photon will be detected either at A or B, as shown in Figure 1. In the second case, we place two perfect mirrors and a second beam splitter in the photon’s path, as shown in Figure 2. According to classical probability theory, we have a 50% chance of detecting the photon at either A or B. However, this is not what happens. Instead, interference will always cause the photon to emerge at A.
This tells us that the photon that left source A must have used paths 1, 2, 3, and 4 before emerging at detector A. For a more in-depth discussion of interference, the reader should read Richard Feynman’s book QED: The Strange Theory of Light and Matter.
What is immediately relevant for this discussion are the following three points:
VI. Appendix: Calculating Probabilities in Quantum Systems
A. The Born Rule for Measuring Probabilities in Quantum Mechanical Systems
The Born rule is a fundamental principle in quantum mechanics that relates the probability of measuring a particular outcome in a quantum system to the quantum state of that system. Named after the German physicist Max Born, who formulated it in 1926, the Born rule provides a probabilistic interpretation of the wave function, which describes the state of a quantum system.
The Born rule states that the probability ( P ) of obtaining a specific measurement outcome corresponding to a quantum state |psi> is given by the square of the absolute value of the probability amplitude associated with that outcome. Mathematically, the Born rule is expressed as follows:
Where:
The Born rule emphasizes the probabilistic nature of quantum mechanics, highlighting that measurements on quantum systems yield outcomes with probabilities determined by the system’s quantum state. It provides a mathematical framework for calculating probabilities in quantum experiments and is essential for understanding and interpreting the results of quantum measurements.
B. Example of Probability Measurement Outcomes
If a qubit is in the following superposition state:
The probability amplitude associated with measuring ∣0⟩ or ∣1⟩ is:
The probability of measuring ∣0⟩ is calculated as the square of the absolute value of this amplitude:
Therefore, the probability of measuring ∣0⟩ is 1/2, or 50%.
Similarly, the probability of measuring ∣1⟩ is:
VI. References
- The Feynman Processor: Quantum Entanglement and the Computing Revolution, by Gerard J. Milburn, 1999
- Quantum Computing Since Democritus, by Scott Aaronson, 2013
- Book Review: Programming the Universe — A Quantum Computer Scientist Takes on the Cosmos, by Seth Lloyd, 2007
- The Character of Physical Law, (based on a lecture given in 1965) by Richard Feynman, 1994
- QED: The Strange Theory of Light and Matter, by Richard Feynman,

