Skip to main contentIBM Quantum Documentation

ControlModifier

qiskit.circuit.ControlModifier(num_ctrl_qubits=0, ctrl_state=None) GitHub(opens in a new tab)

Bases: Modifier

Control modifier: specifies that the operation is controlled by num_ctrl_qubits and has control state ctrl_state.


Attributes

ctrl_state

int | str | None

= None

num_ctrl_qubits

int

= 0

Was this page helpful?