-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix behavior of n_local calling circuits for num_qubits=1 (#13523)
* added fix for efficient_su2 * making fix for real_amplitudes and excitation_preserving * formatted * passing tests * added release notes * fixed pauli_two_design * fixed format * fixed pauli_two_design issue * fixed unused gate * Update qiskit/circuit/library/n_local/pauli_two_design.py Co-authored-by: Julien Gacon <[email protected]> * addressing change --------- Co-authored-by: Julien Gacon <[email protected]>
- Loading branch information
1 parent
40aa70c
commit 82bbcaa
Showing
6 changed files
with
56 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/fix-efficient-su2-numqubits-issue-2b2c91c1186f82ac.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fixes: | ||
- | | ||
Fixed a bug that caused the circuit library functions :func:`.efficient_su2`, | ||
:func:`.real_amplitudes`, :func:`.excitation_preserving` and :func:`.pauli_two_design` | ||
to error out when constructed for ``num_qubits==1``. For a single qubit these | ||
circuits will not contain any 2-qubit gates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters