Skip to content

Commit

Permalink
use compose instead of + (#12609)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryoris committed Jun 20, 2024
1 parent 0f51357 commit 591260f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/circuit/library/n_local/two_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class TwoLocal(NLocal):
>>> entangler_map = [[0, 3], [0, 2]] # entangle the first and last two-way
>>> two = TwoLocal(4, [], 'cry', entangler_map, reps=1)
>>> circuit = two + two
>>> circuit = two.compose(two)
>>> print(circuit.decompose().draw()) # note, that the parameters are the same!
q_0: ─────■───────────■───────────■───────────■──────
│ │ │ │
Expand Down

0 comments on commit 591260f

Please sign in to comment.