forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve SabreSwap error message on unexpanded circuits (Qiskit#9909)
`SabreSwap` requires that the input circuit is exactly the same size as the system implied by the coupling map, since this is used internally in Rust for the virtual-to-physical mapping. Failure to ensure this can lead to panics in the Rust code. This commit catches the failure case (for free) in Python space, and attempts to help the user work out what they needed.
- Loading branch information
1 parent
91cc4da
commit 864c01d
Showing
2 changed files
with
33 additions
and
4 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