Skip to content

Commit

Permalink
use compose instead of + (#12609) (#12611)
Browse files Browse the repository at this point in the history
(cherry picked from commit 591260f)

Co-authored-by: Julien Gacon <[email protected]>
  • Loading branch information
mergify[bot] and Cryoris authored Jun 20, 2024
1 parent 44b3146 commit 7666771
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 @@ -135,7 +135,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 7666771

Please sign in to comment.