-
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.
Browse files
Browse the repository at this point in the history
* Fix bad deprecation of Register.name_format This inadvertantly made the class attribute accessible only from instances. It's no use for this to only be on instances, since you historically needed to validate against the regex to be sure the instance initialisation would succeed. * Use custom descriptor instead of classmethod/property The positive interaction between `classmethod` and `property` was apparently only added in Python 3.9. * Fixup release note Co-authored-by: Matthew Treinish <[email protected]> --------- Co-authored-by: Matthew Treinish <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 06f5ac1) Co-authored-by: Jake Lishman <[email protected]>
- Loading branch information
1 parent
5871ed5
commit 6ec3eff
Showing
3 changed files
with
37 additions
and
13 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
10 changes: 10 additions & 0 deletions
10
releasenotes/notes/fix-register-name-format-deprecation-61ad5b06d618bb29.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,10 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed a bad deprecation of :attr:`.Register.name_format` which had made the class attribute | ||
available only from instances and not the class. When trying to send dynamic-circuits jobs to | ||
hardware backends, this would frequently cause the error:: | ||
AttributeError: 'property' object has no attribute 'match' | ||
Fixed `#9493 <https://github.com/Qiskit/qiskit-terra/issues/9493>`__. |
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