qiskit/releasenotes/notes/0.17/circuit-tensor-f432dcd9302d...

21 lines
621 B
YAML

---
features:
- |
A new :meth:`~qiskit.circuit.QuantumCircuit.tensor` method has been
added to the :class:`~qiskit.circuit.QuantumCircuit` class. This
method enables tensoring another circuit with an existing circuit.
This method works analogously to
:meth:`qiskit.quantum_info.Operator.tensor`
and is consistent with the little-endian convention of Qiskit.
For example:
.. jupyter-execute::
from qiskit import QuantumCircuit
top = QuantumCircuit(1)
top.x(0);
bottom = QuantumCircuit(2)
bottom.cry(0.2, 0, 1);
bottom.tensor(top).draw(output='mpl')