bloqade.squin.stdlib.simple.gate.ccz
← Module overview
function
source
functionccz¶source
bloqade.squin.stdlib.simple.gate.ccz
def ccz(control1: Qubit, control2: Qubit, target: Qubit) -> NoneApply a doubly-controlled Z gate to a triple of qubits.
Applies a Z gate to the target qubit conditioned on both control qubits being in the state |1>.
Parameters
| Name | Type | Description |
|---|---|---|
control1 | Qubit | First control qubit. |
control2 | Qubit | Second control qubit. |
target | Qubit | Target qubit. |