ExcitationPreserving.mcrx

ExcitationPreserving.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 (list(Qubit)) – The list of control qubits

  • q_target (Qubit) – The target qubit

  • use_basis_gates (bool) – use u1, u2, u3, cx, id

Raises

QiskitError – parameter errors