The Hadamard transform on a register of qubits #
Let the computational basis ι of a quantum system split, by an equivalence
e : ι ≃ (K → Bool) × R, into a register of qubits indexed by K and a remaining part R. The
Hadamard transform on the register applies a Hadamard gate to each of its qubits:
|a, r⟩ ↦ 2^{-|K|/2} ∑_z (-1)^{a ⬝ᵥ z} |z, r⟩ (Cslib.Quantum.hadamardTransform). It is an
isometry by Parseval's identity for the sign matrix (-1)^{a ⬝ᵥ z}
(Cslib.BitString.sum_sq_sum_mul_signVal_dotProduct).
The Hadamard transform is the Fourier transform of the group (K → Bool, +): it is the first and
last step of the algorithms of Bernstein–Vazirani and Simon
(CslibFrontier/Computability/QueryComplexity/Quantum/BernsteinVazirani.lean,
CslibFrontier/Computability/QueryComplexity/Quantum/Simon.lean), de Wolf, Chapters 2
and 3.
Main definitions #
Cslib.Quantum.hadamardTransform: the Hadamard transform on a register of qubits.
Main results #
Cslib.Quantum.hadamardTransform_apply: its amplitudes.Cslib.Quantum.hadamardTransform_ket: its action on a basis state.
References #
The Hadamard transform on the register K → Bool of a basis ι ≃ (K → Bool) × R: a
Hadamard gate on each qubit of the register,
|a, r⟩ ↦ 2^{-|K|/2} ∑_z (-1)^{a ⬝ᵥ z} |z, r⟩.
The Hadamard transform of a basis state |a, r⟩ has amplitude
2^{-|K|/2} (-1)^{a ⬝ᵥ z} at |z, r⟩ and 0 elsewhere.