Skip to content

Commit

Permalink
document entanglement="pairwise" for EfficientSU2 (#12314)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung authored May 1, 2024
1 parent f2b874b commit c6ba3a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qiskit/circuit/library/n_local/efficient_su2.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ def __init__(
If only one gate is provided, the same gate is applied to each qubit.
If a list of gates is provided, all gates are applied to each qubit in the provided
order.
entanglement: Specifies the entanglement structure. Can be a string ('full', 'linear'
, 'reverse_linear', 'circular' or 'sca'), a list of integer-pairs specifying the indices
of qubits entangled with one another, or a callable returning such a list provided with
the index of the entanglement layer.
Default to 'reverse_linear' entanglement.
entanglement: Specifies the entanglement structure. Can be a string
('full', 'linear', 'reverse_linear', 'pairwise', 'circular', or 'sca'),
a list of integer-pairs specifying the indices of qubits entangled with one another,
or a callable returning such a list provided with the index of the entanglement layer.
Defaults to 'reverse_linear' entanglement.
Note that 'reverse_linear' entanglement provides the same unitary as 'full'
with fewer entangling gates.
See the Examples section of :class:`~qiskit.circuit.library.TwoLocal` for more
Expand Down

0 comments on commit c6ba3a8

Please sign in to comment.