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

Improving legacy swapper performance #2525

Closed
wants to merge 7 commits into from
Closed

Conversation

1ucian0
Copy link
Member

@1ucian0 1ucian0 commented May 28, 2019

Because of #2499 (comment), I was investigating possible reasons. The main problem seems in LegacySwap.layer_permutation, in master:
Screen Shot 2019-05-28 at 3 48 46 PM

And before #2414
Screen Shot 2019-05-28 at 3 48 14 PM

Indeed, the problem is the amount of equality checks among qubits. So, this PR tries to improve that. Additionally, I found other points of improvement (for example, by reducing the amount of equality comparison). The result is the following:
Screen Shot 2019-05-28 at 3 49 26 PM

Note that equality check for Bit is expensive (in part, because the deprecation warnings) and this PR bearly address that. But I could counter effect that price by other improvements.

@1ucian0 1ucian0 mentioned this pull request May 29, 2019
@ajavadia
Copy link
Member

I think this is irrelevant now with #2670

@ajavadia ajavadia closed this Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants