-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 deprecated stochastic swap transpiler pass #13791
base: main
Are you sure you want to change the base?
Conversation
This commit removes the stochastic swap transpiler pass and its associated routing stage plugin. This pass has been superseded by sabre at this point and it was deprecated in the Qiskit 1.3.0 release. Part of Qiskit#13699
One or more of the following people are relevant to this code:
|
Pull Request Test Coverage Report for Build 13168305596Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
o7 to the first Rust code of Qiskit
target=backend.target | ||
) | ||
|
||
this should be replaced with:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to unindent this text line to separate the code blocks.
releasenotes/notes/remove-stochastic-swap-88e2d6be4c0d5713.yaml
Outdated
Show resolved
Hide resolved
with warnings.catch_warnings(): | ||
# TODO: remove this filter when StochasticSwap is removed | ||
warnings.filterwarnings( | ||
"ignore", | ||
category=DeprecationWarning, | ||
message=r".*StochasticSwap.*", | ||
) | ||
# pylint: disable=not-callable | ||
passmanager.append(self.pass_class(CouplingMap(coupling_map), **self.additional_args)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can remove the whole warnings.catch_warnings
now too
with self.assertWarns(DeprecationWarning): | ||
pass_ = SabreLayout( | ||
cm, seed=0, routing_pass=StochasticSwap(cm, trials=1, seed=0, fake_run=True) | ||
) | ||
pass_ = SabreLayout(cm, seed=0, routing_pass=BasicSwap(cm, fake_run=True)) | ||
_ = pass_(qc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't warn now... I think it might be the duration thing inside the implicit dag_to_circuit
from SabreLayout.__call__
.
Co-authored-by: Jake Lishman <[email protected]>
Oh also I meant to write in the top review comment: we need to update the |
Summary
This commit removes the stochastic swap transpiler pass and its associated routing stage plugin. This pass has been superseded by sabre at this point and it was deprecated in the Qiskit 1.3.0 release.
Details and comments
Part of #13699