IntegerComparator.ucrx(angle_list, q_controls, q_target)

Attach a uniformly controlled (also called multiplexed) Rx rotation gate to a circuit.

The decomposition is base on by Shende et al.

  • angle_list (list) – list of (real) rotation angles \([a_0,...,a_{2^k-1}]\)

  • q_controls (QuantumRegister|list) – list of k control qubits (or empty list if no controls). The control qubits are ordered according to their significance in increasing order: For example if q_controls=[q[0],q[1]] (with q = QuantumRegister(2)), the rotation Rx(a_0) is performed if q[0] and q[1] are in the state zero, the rotation Rx(a_1) is performed if q[0] is in the state one and q[1] is in the state zero, and so on

  • q_target (QuantumRegister|Qubit) – target qubit, where we act on with the single-qubit rotation gates


the uniformly controlled rotation gate is attached to the circuit.

반환 형식



QiskitError – if the list number of control qubits does not correspond to the provided number of single-qubit unitaries; if an input is of the wrong type