Skip to content

bloqade.squin.gate.stmts.CCZ

← Module overview

classCCZsource

bloqade.squin.gate.stmts.CCZ

Bases: Gate

Doubly-controlled Z gate applied to triples of (control1, control2, target) qubits.

class CCZ

Applies a Z gate to each target qubit conditioned on both of its control qubits being in the state |1>. This is the k = 2 instance of the multi-controlled C^kZ gate family described in D. Hangleiter et al., arXiv:2404.19005 (Eq. 1).

Attributes

NameTypeDefaultDescription
name—'ccz'
traits—frozenset({lowering.FromPythonCall()})
controls1ir.SSAValueinfo.argument(ilist.IListType[QubitType, N])
controls2ir.SSAValueinfo.argument(ilist.IListType[QubitType, N])
targetsir.SSAValueinfo.argument(ilist.IListType[QubitType, N])