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 patching of SwapGate.__new__ from Sabre test #11012

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

jakelishman
Copy link
Member

Summary

This made sense as a way of tracking the progress of Sabre back when our implementation was pure-Python and generated the swaps on-the-fly, but ever since it moved to Rust, the infinite loop would have happened before any swaps were constructed at all.

With the move to singleton gates, this test can cause problems; the restoration after the patching can cause issues with the singleton-return apparatus.

Details and comments

This made sense as a way of tracking the progress of Sabre back when our
implementation was pure-Python and generated the swaps on-the-fly, but
ever since it moved to Rust, the infinite loop would have happened
before any swaps were constructed at all.

With the move to singleton gates, this test can cause problems; the
restoration after the patching can cause issues with the
singleton-return apparatus.
@jakelishman jakelishman added type: qa Issues and PRs that relate to testing and code quality Changelog: None Do not include in changelog labels Oct 12, 2023
@jakelishman jakelishman requested a review from a team as a code owner October 12, 2023 23:01
@qiskit-bot
Copy link
Collaborator

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

  • @Qiskit/terra-core

Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

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

LGTM, this seems straightforward enough and is needed given the changes for singleton gates.

@mtreinish mtreinish added this pull request to the merge queue Oct 13, 2023
Merged via the queue into Qiskit:main with commit 7a550ad Oct 13, 2023
14 checks passed
@jakelishman jakelishman deleted the fix-bad-sabre-test branch October 13, 2023 07:48
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 changelog type: qa Issues and PRs that relate to testing and code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants