-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make registers a subset of circuit.*bits
In keeping with compability with changes to the circuit model made in 0.17.0 registers in qpy are now a subset of contiguous indices in the bit lists for a circuit. This removes the need to access qubit.index and qubit.name on arguments to instructions (which raises a deprecation warning). This also should be backwards compatible for terra < 0.17.0 there just isn't any potential for an index without a register in the circuit for terra < 0.17.0.
- Loading branch information
Showing
1 changed file
with
53 additions
and
27 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