qiskit.circuit.library.CXGate.control¶
- CXGate.control(num_ctrl_qubits=1, label=None, ctrl_state=None)[소스]¶
Return a controlled-X gate with more control lines.
- 매개변수
num_ctrl_qubits (int) – number of control qubits.
label (str or None) – An optional label for the gate [Default: None]
ctrl_state (int or str or None) – control state expressed as integer, string (e.g. 〈110〉), or None. If None, use all 1s.
- 반환
controlled version of this gate.
- 반환 형식