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.
Fix panic in SabreSwap with classical bits
This commit fixes a bug introduced in SabreSwap that was caught by the randomized testing in Qiskit#8635. A copy paste error was causing the rusty sabre code to panic in cases where there were classical bits of a particular index assigned prior to the qubit with the same index. This commit fixes the typo so the behavior is corrected in general and the panic is also fixed. Fixes Qiskit#8635
- Loading branch information
Showing
2 changed files
with
40 additions
and
1 deletion.
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