English
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.mcrx

QuantumCircuit.mcrx(theta, q_controls, q_target, use_basis_gates=False)

Apply Multiple-Controlled X rotation gate

Parameters
  • self (QuantumCircuit) – The QuantumCircuit object to apply the mcrx gate on.

  • theta (float) – angle theta

  • q_controls (QuantumRegister or list(Qubit)) – The list of control qubits

  • q_target (Qubit) – The target qubit

  • use_basis_gates (bool) – use p, u, cx

Raises

QiskitError – parameter errors