-
Notifications
You must be signed in to change notification settings - Fork 586
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
Add count_resources
function
#3996
Conversation
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
[sc-36750] |
Hello. You may have forgotten to update the changelog!
|
Codecov Report
@@ Coverage Diff @@
## master #3996 +/- ##
=======================================
Coverage 99.58% 99.58%
=======================================
Files 351 351
Lines 30755 30766 +11
=======================================
+ Hits 30626 30637 +11
Misses 129 129
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
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.
Thanks @Jaybsoni, looks great. Left some comments and questions. My major point is on the optional support for decomposition of standard PL gates, if they have a decomposition method.
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
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.
Thanks Jay. Is the plan to merge this before the circuit graph PR or after?
Probably will merge this first and then address that PR afterwards |
Context:
Add a function which takes a tape and counts the resources used in the tape to return a
Resources
objectDescription of the Change:
Add a function in
resources.py
which iterates over the operations in the tape along with additional meta-datato count the resources for the tape.