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

Remove NoiseAdaptiveLayout and CrosstalkAdaptiveSchedule #11400

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

mtreinish
Copy link
Member

Summary

This commit removes two transpiler passes that are no longer useful in modern Qiskit. NoiseAdaptiveLayout has largely been superseded by VF2Layout and VF2PostLayout which takes noise into account for layout selection. The CrosstalkAdaptiveSchedule isn't usable anymore as it relies on custom fields being set to report cross talk in the BackendProperties payload for a BackendV1 instance. As most backends are using BackendV2 now and no current backends are reporting this custom field the pass can't be used.

Details and comments

This commit removes two transpiler passes that are no longer useful in
modern Qiskit. NoiseAdaptiveLayout has largely been superseded by
VF2Layout and VF2PostLayout which takes noise into account for layout
selection. The CrosstalkAdaptiveSchedule isn't usable anymore as it
relies on custom fields being set to report cross talk in the
BackendProperties payload for a BackendV1 instance. As most backends are
using BackendV2 now and no current backends are reporting this custom
field the pass can't be used.
@mtreinish mtreinish added Changelog: Removal Include in the Removed section of the changelog mod: transpiler Issues and PRs related to Transpiler labels Dec 11, 2023
@mtreinish mtreinish added this to the 1.0.0 milestone Dec 11, 2023
@mtreinish mtreinish requested a review from a team as a code owner December 11, 2023 22:44
@qiskit-bot
Copy link
Collaborator

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

  • @Qiskit/terra-core
  • @nkanazawa1989

@coveralls
Copy link

coveralls commented Dec 11, 2023

Pull Request Test Coverage Report for Build 7212955948

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 12 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.01%) to 87.542%

Files with Coverage Reduction New Missed Lines %
qiskit/pulse/parameter_manager.py 1 96.84%
crates/qasm2/src/lex.rs 5 91.67%
crates/qasm2/src/parse.rs 6 97.6%
Totals Coverage Status
Change from base Build 7163309461: -0.01%
Covered Lines: 59167
Relevant Lines: 67587

💛 - Coveralls

mtreinish added a commit to mtreinish/qiskit-core that referenced this pull request Dec 12, 2023
This commit deprecates two transpiler passes that are no longer useful
in modern Qiskit. NoiseAdaptiveLayout has largely been superseded by
VF2Layout and VF2PostLayout which takes noise into account for layout
selection. The CrosstalkAdaptiveSchedule isn't usable anymore as it
relies on custom fields being set to report cross talk in the
BackendProperties payload for a BackendV1 instance. As most backends
are using BackendV2 now and no current backends are reporting this
custom field the pass can't be used. These transpiler passes will be
removed in the 1.0.0 release (see Qiskit#11400).
Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed some additional references to NoiseAdaptiveLayout in the benchmark and randomised test suites, and in the documentation about noise_adaptive.

This looks fine to merge to me - these two passes haven't been updated in ages, and are either no longer working at all, or completely superseded.

@jakelishman jakelishman added this pull request to the merge queue Dec 14, 2023
Merged via the queue into Qiskit:main with commit ea4f6be Dec 14, 2023
@mtreinish mtreinish deleted the remove-old-passes branch December 18, 2023 14:13
github-merge-queue bot pushed a commit that referenced this pull request Jan 31, 2024
* Deprecate NoiseAdaptiveLayout and CrosstalkAdaptiveSchedule

This commit deprecates two transpiler passes that are no longer useful
in modern Qiskit. NoiseAdaptiveLayout has largely been superseded by
VF2Layout and VF2PostLayout which takes noise into account for layout
selection. The CrosstalkAdaptiveSchedule isn't usable anymore as it
relies on custom fields being set to report cross talk in the
BackendProperties payload for a BackendV1 instance. As most backends
are using BackendV2 now and no current backends are reporting this
custom field the pass can't be used. These transpiler passes will be
removed in the 1.0.0 release (see #11400).

* Fix errant apostrophe

* Fix black

* Fix deprecation function calls

* Catch deprecation warnings in tests

* Fix lint

---------

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Removal Include in the Removed section of the changelog mod: transpiler Issues and PRs related to Transpiler
Projects
Status: done
Development

Successfully merging this pull request may close these issues.

4 participants