quantum gate directory
Controlled-Hadamard
Symbol
$\mathrm{C}H$
Qubits: $2$
hermitian
Description:
Applies a Hadamard to the target qubit when the control qubit is in the $|1\rangle$ state.
Alternate notations:
- $\Lambda(H)$
- $\text{controlled-}H$
Controlled version of: Hadamard
SDK Support
| SDK | Name |
|---|---|
| Qiskit |
qiskit.circuit.library.CHGate
|
| PennyLane |
pennylane.CH
|
| Cirq | — ⓘ |
| Q# | — ⓘ |
| PyQuil | — ⓘ |
| Braket | — ⓘ |
| BQSKit |
bqskit.ir.gates.CHGate
|
| Qibo |
qibo.gates.CH
|
| pytket |
pytket.circuit.OpType.CH
|
| Stim | — |
| OpenQASM |
stdgates.inc: ch
|
Groups
This gate is contained in the following groups:
The controlled-Hadamard gate performs a conditional change of basis, moving the target between the computational basis and the Hadamard basis only when the control is $|1\rangle$.
$$ \mathrm{C}H = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & \tfrac{1}{\sqrt{2}} & \tfrac{1}{\sqrt{2}} \\ 0 & 0 & \tfrac{1}{\sqrt{2}} & -\tfrac{1}{\sqrt{2}} \end{bmatrix} $$
Properties
- Hermitian and self-inverse, like the Hadamard itself.
- Real, so it lies in the orthogonal group.
- Although $H$ is Clifford, $\mathrm{C}H$ is not. Adding a control to a Clifford gate does not preserve Clifford-ness in general (compare CNOT, which stays Clifford, versus $\mathrm{C}H$ and $\mathrm{C}S$, which do not).
Decompositions
- A single entangling gate suffices: $\mathrm{C}H = (I \otimes R_y(\pi/4)) \, \mathrm{C}Z \, (I \otimes R_y(-\pi/4))$, which works because $R_y(\pi/4) \, Z \, R_y(-\pi/4) = H$.
Back to home