Skip to content

bloqade.native.stdlib.broadcast.ccz

← Module overview

functioncczsource

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

NameTypeDescription
controls1ilist.IList[qubit.Qubit, N]First control qubits of each triple.
controls2ilist.IList[qubit.Qubit, N]Second control qubits of each triple.
targetsilist.IList[qubit.Qubit, N]Target qubits of each triple.
source