bloqade.native.stdlib.broadcast.ccz
← Module overview
function
source
functionccz¶source
bloqade.native.stdlib.broadcast.ccz
Signature
def ccz(controls1: ilist.IList[qubit.Qubit, N], controls2: ilist.IList[qubit.Qubit, N], targets: ilist.IList[qubit.Qubit, N])Apply a doubly-controlled Z gate on triples of (control1, control2, target) qubits.
Decomposed into CZ, sqrt(Y), RX and T gates by merging the single-qubit layers of the standard T-gate construction of the CCZ gate.
Parameters
| Name | Type | Description |
|---|---|---|
controls1 | ilist.IList[qubit.Qubit, N] | First control qubits of each triple. |
controls2 | ilist.IList[qubit.Qubit, N] | Second control qubits of each triple. |
targets | ilist.IList[qubit.Qubit, N] | Target qubits of each triple. |