Skip to content

Remove unsupported PassManager for scheduling stage#10623

Merged
jakelishman merged 2 commits into
Qiskit:mainfrom
mtreinish:drop-passmanager-passing
Aug 22, 2023
Merged

Remove unsupported PassManager for scheduling stage#10623
jakelishman merged 2 commits into
Qiskit:mainfrom
mtreinish:drop-passmanager-passing

Conversation

@mtreinish
Copy link
Copy Markdown
Member

Summary

In optimization level 3's preset pass manager there was handling for a PassManager object coming in via the scheduling_method argument. This is not a valid type for the scheduling method argument and would result in an error higher up in the call stack and also would not work for any other optimization level. This was a leftover from #8648 which added the option for backends to set alternate defaults for the scheduling stage. An earlier iteration of that PR was using a PassManager returned by the backend instead of the plugin interface. The handling for the PassManager input was not removed when that PR was updated to use the plugin interface. This commit corrects the oversight and removes the stray condition that would never work.

Details and comments

In optimization level 3's preset pass manager there was handling for a
PassManager object coming in via the `scheduling_method` argument. This
is not a valid type for the scheduling method argument and would result
in an error higher up in the call stack and also would not work for any
other optimization level. This was a leftover from Qiskit#8648 which added the
option for backends to set alternate defaults for the scheduling stage.
An earlier iteration of that PR was using a PassManager returned by the
backend instead of the plugin interface. The handling for the
PassManager input was not removed when that PR was updated to use the
plugin interface. This commit corrects the oversight and removes the
stray condition that would never work.
@mtreinish mtreinish added the Changelog: None Do not include in the GitHub Release changelog. label Aug 14, 2023
@mtreinish mtreinish added this to the 0.45.0 milestone Aug 14, 2023
@mtreinish mtreinish requested a review from a team as a code owner August 14, 2023 16:54
@qiskit-bot
Copy link
Copy Markdown
Collaborator

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 5858421279

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 10 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.01%) to 87.259%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 4 91.14%
crates/qasm2/src/parse.rs 6 97.6%
Totals Coverage Status
Change from base Build 5857364416: -0.01%
Covered Lines: 74295
Relevant Lines: 85143

💛 - Coveralls

@jakelishman jakelishman enabled auto-merge August 21, 2023 17:22
@jakelishman jakelishman added this pull request to the merge queue Aug 22, 2023
Merged via the queue into Qiskit:main with commit 0b51250 Aug 22, 2023
@mtreinish mtreinish deleted the drop-passmanager-passing branch August 22, 2023 03:42
SameerD-phys pushed a commit to SameerD-phys/qiskit-terra that referenced this pull request Sep 7, 2023
In optimization level 3's preset pass manager there was handling for a
PassManager object coming in via the `scheduling_method` argument. This
is not a valid type for the scheduling method argument and would result
in an error higher up in the call stack and also would not work for any
other optimization level. This was a leftover from Qiskit#8648 which added the
option for backends to set alternate defaults for the scheduling stage.
An earlier iteration of that PR was using a PassManager returned by the
backend instead of the plugin interface. The handling for the
PassManager input was not removed when that PR was updated to use the
plugin interface. This commit corrects the oversight and removes the
stray condition that would never work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: None Do not include in the GitHub Release changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants