Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing of seed_transpiler in generate_preset_pass_manager (backport #12980) #12996

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 20, 2024

Summary

Parsing of seed_transpiler argument of generate_preset_pass_manager raises a ValueError if negative value is provided for the seed.

Details and comments

Fixes #12938.
Parsing function for seed_transpiler added to parsing other non-target dependent pass manager options.
The added test checks that ValueError is indeed raised if seed takes negative value.


This is an automatic backport of pull request #12980 done by [Mergify](https://mergify.com).

* 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)
@mergify mergify bot requested a review from a team as a code owner August 20, 2024 09:53
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core

@github-actions github-actions bot added the Community PR PRs from contributors that are not 'members' of the Qiskit repo label Aug 20, 2024
@github-actions github-actions bot added this to the 1.2.1 milestone Aug 20, 2024
ElePT
ElePT previously approved these changes Aug 20, 2024
@ElePT ElePT enabled auto-merge August 20, 2024 09:57
ElePT
ElePT previously approved these changes Aug 20, 2024
@ElePT ElePT added the Changelog: Bugfix Include in the "Fixed" section of the changelog label Aug 20, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10470188043

Details

  • 7 of 7 (100.0%) changed or added relevant lines in 1 file are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 89.828%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 3 91.98%
Totals Coverage Status
Change from base Build 10468372678: 0.02%
Covered Lines: 66814
Relevant Lines: 74380

💛 - Coveralls

@ElePT ElePT added this pull request to the merge queue Aug 20, 2024
Merged via the queue into stable/1.2 with commit aff2efc Aug 20, 2024
17 checks passed
@mergify mergify bot deleted the mergify/bp/stable/1.2/pr-12980 branch August 20, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog Community PR PRs from contributors that are not 'members' of the Qiskit repo
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants