The Hadamard transform, also known as the Hadamard-Walsh transform, plays a important role in Simon's algorithm, a quantum algorithm designed to solve a specific problem in the field of quantum computing. The algorithm was proposed by Daniel Simon in 1994 and is widely recognized for its ability to efficiently solve a class of problems that are intractable for classical computers.
Simon's algorithm is primarily used to solve the Simon problem, which involves finding a hidden period in a function. More specifically, given a black box function f(x) that takes an n-bit input and produces an n-bit output, the goal is to determine if the function is periodic and, if so, find a non-zero bit string s such that f(x) = f(x ⊕ s) for all x, where ⊕ denotes bitwise XOR.
The key insight behind Simon's algorithm is the use of quantum parallelism and interference effects to efficiently determine the period of the function. The algorithm begins by preparing a quantum state that is a superposition of all possible inputs. This is achieved by applying a Hadamard transform to n qubits initialized in the state |0⟩, resulting in a uniform superposition of all 2^n possible input states.
The Hadamard transform is a unitary transformation that acts on a single qubit and is defined by the matrix:
H = 1/√2 * [[1, 1],
[1, -1]]
When applied to a qubit in the state |0⟩, the Hadamard transform maps it to the state |+⟩ = 1/√2 * (|0⟩ + |1⟩), and when applied to a qubit in the state |1⟩, it maps it to the state |-⟩ = 1/√2 * (|0⟩ – |1⟩). Geometrically, the Hadamard transform rotates the basis states |0⟩ and |1⟩ to the states |+⟩ and |-⟩, respectively, which are superpositions of the basis states.
In Simon's algorithm, after applying the Hadamard transform to the n qubits, the resulting state is a superposition of all possible inputs:
|ψ⟩ = 1/√2^n * Σ_x |x⟩
Next, the black box function f(x) is applied to the state |ψ⟩, resulting in the state:
|ψ'⟩ = 1/√2^n * Σ_x |x⟩ ⊗ |f(x)⟩
The key step in Simon's algorithm is to apply a second Hadamard transform to the first n qubits. This transform acts on each qubit independently and maps the state |x⟩ to the state |+⟩ if the corresponding qubit of the state |f(x)⟩ is 0, and maps it to the state |-⟩ if the corresponding qubit of the state |f(x)⟩ is 1.
The effect of the second Hadamard transform is to create an interference pattern based on the periodicity of the function f(x). If the function is periodic with period s, then for any two input states x and y that differ by s, the corresponding states f(x) and f(y) will also differ by s. As a result, the interference pattern created by the second Hadamard transform will contain information about the period s.
By measuring the resulting state after the second Hadamard transform, it is possible to extract the period s using classical post-processing techniques. This can be done by performing a Fourier transform on the measured outcomes, which reveals the underlying periodicity of the function.
The Hadamard transform is a important component of Simon's algorithm as it enables the creation of a superposition of all possible inputs and the generation of interference effects that encode information about the period of the function being analyzed. By leveraging these quantum properties, Simon's algorithm provides an efficient means of solving the Simon problem.
Other recent questions and answers regarding EITC/QI/QIF Quantum Information Fundamentals:
- Are amplitudes of quantum states always real numbers?
- How the quantum negation gate (quantum NOT or Pauli-X gate) operates?
- Why is the Hadamard gate self-reversible?
- If measure the 1st qubit of the Bell state in a certain basis and then measure the 2nd qubit in a basis rotated by a certain angle theta, the probability that you will obtain projection to the corresponding vector is equal to the square of sine of theta?
- How many bits of classical information would be required to describe the state of an arbitrary qubit superposition?
- How many dimensions has a space of 3 qubits?
- Will the measurement of a qubit destroy its quantum superposition?
- Can quantum gates have more inputs than outputs similarily as classical gates?
- Does the universal family of quantum gates include the CNOT gate and the Hadamard gate?
- What is a double-slit experiment?
View more questions and answers in EITC/QI/QIF Quantum Information Fundamentals

