Hadamard gate
Identifier | Operator | Example statement |
---|---|---|
H | \(H\) | H q[0] |
Description
The Hadamard, or H, gate is an anti-clockwise rotation with an angle of \(\pi\) [rad] about the combined \((\hat{\mathbf{x}}+\hat{\mathbf{z}})\)-axis.
It is a single-qubit operation that maps the computational basis state \(|0\rangle \to \left(|0\rangle + |1\rangle\right)/\sqrt{2}\) and \(|1\rangle \to \left(|0\rangle - |1\rangle\right)/\sqrt{2}\), thus creating an equal superposition of the two basis states.
The \(X\)-basis states:
form the Hadamard basis \(\{|+\rangle ,|-\rangle \}\).
Properties
- Clifford gate;
- Involutory operation (its own inverse).
Decompositions
XY-basis
The Hadamard gate can be expressed as an anti-clockwise \(\pi/2\) [rad] rotation around the \(\hat{\mathbf{y}}\)-axis, equivalent to a Y90 gate, followed by a Pauli-X gate:
or -from the anti-commutation relation- by:
where a minus-Y90 gate is used.
YZ-basis
Similarly, the Hadamard gate can be decomposed in the \(YZ\)-basis:
or by:
Note
The equals symbol (\(=\)) signifies that the decomposition is equal including the global phase. The similar-equals symbol (\(\simeq\)) signifies that the decomposition is equal up to a global phase difference.
Representation
Any single-qubit operation in \(U(2)\) (including global phase) can be expressed by 5 parameters in the canonical representation \(R_\hat{\mathbf{n}}\)
where \(\hat{\mathbf{n}}=[n_x, n_y, n_z]^T\) denotes the axis of rotation, \(\theta\in(-\pi, \pi]\) the anti-clockwise angle of rotation [rad], and \(\phi\in[0,2\pi)\) the global phase angle [rad].
The Hadamard gate is given by:
In the Hadamard basis \(\{|+\rangle, |-\rangle\}\), the Hadamard gate \(H_H\) is given by: