-
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.
Parsing of
seed_transpiler
in generate_preset_pass_manager
(backp…
…ort #12980) (#12996) * Parsing of `seed_transpiler` in `generate_preset_pass_manager` (#12980) * Raise ValueError if seed_transpiler is negative * Fix code formatting * Implement suggested changes * Update releasenotes/notes/fix-negative-seed-pm-2813a62a020da115.yaml Co-authored-by: Elena Peña Tapia <[email protected]> * Update qiskit/transpiler/preset_passmanagers/generate_preset_pass_manager.py Co-authored-by: Elena Peña Tapia <[email protected]> --------- Co-authored-by: Elena Peña Tapia <[email protected]> (cherry picked from commit 5c8edd4) * Update test/python/transpiler/test_preset_passmanagers.py * Update test/python/transpiler/test_preset_passmanagers.py --------- Co-authored-by: jschuhmac <[email protected]> Co-authored-by: Elena Peña Tapia <[email protected]>
- Loading branch information
1 parent
c53c1c8
commit aff2efc
Showing
3 changed files
with
25 additions
and
0 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
4 changes: 4 additions & 0 deletions
4
releasenotes/notes/fix-negative-seed-pm-2813a62a020da115.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,4 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed the behavior of :meth:`.generate_preset_pass_manager` to raise a `ValueError` exception if not provided with a non-negative integer `seed_transpiler` argument. |
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