bloqade.qasm2.dialects.uop.stmts.CSwap
← Module overview
class
classCSwap¶source
bloqade.qasm2.dialects.uop.stmts.CSwap
Bases: ir.Statement
Apply the controlled swap gate.
class CSwapAttributes
| Name | Type | Default | Description |
|---|---|---|---|
name | — | 'cswap' | |
traits | — | frozenset({lowering.FromPythonCall()}) | |
ctrl | ir.SSAValue | info.argument(QubitType) | ctrl (Qubit): The control qubit. |
qarg1 | ir.SSAValue | info.argument(QubitType) | qarg1 (Qubit): The first target qubit. |
qarg2 | ir.SSAValue | info.argument(QubitType) | qarg2 (Qubit): The second target qubit. |