-
Notifications
You must be signed in to change notification settings - Fork 16
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
Extract Circuits Performance Improvement #291
Conversation
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 change looks good to me! I also found it necessary to update the way the circuit operations are being walked on my machine in bcdonovan#1. With this I get performance of
0.0676 ( 0.1%) 0.0676 ( 0.4%) Extract Circuits Pass
without this it was closer to 1 min 50s.
for 100x100x1 circuits.
Update operation walking to be more efficient.
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.
LGTM
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.
LGTM
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.
LGTM.
This PR improves the performance of the ExtractCircuitsPass by replacing `insertArguments` with `getBody().addArugment`. Also fixes a bug by inserting call_circuit after location of last operation in circuit rather than the first. --------- Co-authored-by: Thomas Alexander <[email protected]>
This PR improves the performance of the ExtractCircuitsPass by replacing `insertArguments` with `getBody().addArugment`. Also fixes a bug by inserting call_circuit after location of last operation in circuit rather than the first. --------- Co-authored-by: Thomas Alexander <[email protected]>
This PR improves the performance of the ExtractCircuitsPass by replacing
insertArguments
withgetBody().addArugment
.Also fixes a bug by inserting call_circuit after location of last operation in circuit rather than the first.