Skip to content

bloqade.qasm2.dialects.uop.stmts.CSwap

← Module overview

classCSwapsource

bloqade.qasm2.dialects.uop.stmts.CSwap

Bases: ir.Statement

Apply the controlled swap gate.

class CSwap

Attributes

NameTypeDefaultDescription
name—'cswap'
traits—frozenset({lowering.FromPythonCall()})
ctrlir.SSAValueinfo.argument(QubitType)ctrl (Qubit): The control qubit.
qarg1ir.SSAValueinfo.argument(QubitType)qarg1 (Qubit): The first target qubit.
qarg2ir.SSAValueinfo.argument(QubitType)qarg2 (Qubit): The second target qubit.