Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.ucry

QuantumCircuit.ucry(angle_list, q_controls, q_target)

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

The decomposition is base on https://arxiv.org/pdf/quant-ph/0406176.pdf by Shende et al.

প্যারামিটার
  • angle_list (List[float]) -- list of (real) rotation angles \([a_0,...,a_{2^k-1}]\)

  • q_controls (Sequence[QubitSpecifier]) -- 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 Ry(a_0) is performed if q[0] and q[1] are in the state zero, the rotation Ry(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 (QubitSpecifier) -- target qubit, where we act on with the single-qubit rotation gates

রিটার্নস

the uniformly controlled rotation gate is attached to the circuit.

রিটার্ন টাইপ

QuantumCircuit

রেইজেস

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