Skip to content

Commit

Permalink
Fix docstring in QuantumCircuit.tensor (#9108) (#9109)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8b0b11c)

Co-authored-by: Julien Gacon <gaconju@gmail.com>
Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
  • Loading branch information
3 people authored Nov 22, 2022
1 parent 3caa782 commit 12c8847
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qiskit/circuit/quantumcircuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1001,16 +1001,16 @@ def tensor(self, other: "QuantumCircuit", inplace: bool = False) -> Optional["Qu
Remember that in the little-endian convention the leftmost operation will be at the bottom
of the circuit. See also
[the docs](qiskit.org/documentation/tutorials/circuits/3_summary_of_quantum_operations.html)
`the docs <qiskit.org/documentation/tutorials/circuits/3_summary_of_quantum_operations.html>`__
for more information.
.. parsed-literal::
┌────────┐ ┌─────┐ ┌─────┐
┌────────┐ ┌─────┐ ┌─────┐
q_0: ┤ bottom ├ ⊗ q_0: ┤ top ├ = q_0: ─┤ top ├──
└────────┘ └─────┘ ┌┴─────┴─┐
q_1: ┤ bottom ├
└────────┘
└────────┘ └─────┘ ┌┴─────┴─┐
q_1: ┤ bottom ├
└────────┘
Args:
other (QuantumCircuit): The other circuit to tensor this circuit with.
Expand Down

0 comments on commit 12c8847

Please sign in to comment.