qiskit/releasenotes/notes/0.16/allow-integer-qarg-in-Quant...

10 lines
433 B
YAML

---
fixes:
- |
The :class:`~qiskit.circuit.QuantumCircuit` method
:meth:`~qiskit.circuit.QuantumCircuit.unitary` method has been fixed
to accept a single integer for the ``qarg`` argument (when adding a
1-qubit unitary). The allowed types for the ``qargs`` argument are now
``int``, :class:`~qiskit.circuit.Qubit`, or a list of integers.
Fixes `#4944 <https://github.com/Qiskit/qiskit-terra/issues/4944>`__