Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.control

QuantumCircuit.control(num_ctrl_qubits=1, label=None, ctrl_state=None)[source]

Control this circuit on num_ctrl_qubits qubits.

প্যারামিটার
  • num_ctrl_qubits (int) -- The number of control qubits.

  • label (str) -- An optional label to give the controlled operation for visualization.

  • ctrl_state (str or int) -- The control state in decimal or as a bitstring (e.g. '111'). If None, use 2**num_ctrl_qubits - 1.

রিটার্নস

The controlled version of this circuit.

রিটার্ন টাইপ

QuantumCircuit

রেইজেস

CircuitError -- If the circuit contains a non-unitary operation and cannot be controlled.