-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow measurement keys with differing qubits in OpenQASM (#6803)
* Allow measurement keys with differing qubits in OpenQASM - Previously, if there was a measurement with the same key but two differently sized registers, then the qasm output might select the wrong key and size the register incorrectly. - This PR examines all the measurements first, and selects the biggest one, so to correctly size the classical register. - Adds unit tests to demonstrate. Fixes: #6508 --------- Co-authored-by: Pavol Juhas <[email protected]>
- Loading branch information
1 parent
76125a2
commit e0087b0
Showing
2 changed files
with
87 additions
and
16 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