mirror of https://github.com/Qiskit/qiskit.git
21 lines
616 B
YAML
21 lines
616 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:
|
|
|
|
.. code-block::
|
|
|
|
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')
|