-
Notifications
You must be signed in to change notification settings - Fork 48
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
[feature] add a Circuit method for Reset #1184
Conversation
Commonly used enough that having to switch to add_gate confuses people.
I'm not sure what is causing the CI failures, any pointers are appreciated |
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.
Are there any examples in which we want to add this?
|
You need to update the version in the binders as well: https://github.com/CQCL/tket/blob/feature/reset-method/pytket/conanfile.py#L35 But I am not sure if that solves the problem. If you need help I could take a more detailed look later today |
pytket/pytket/_tket/circuit.pyi
Outdated
@@ -471,20 +471,6 @@ class Circuit: | |||
:return: the new :py:class:`Circuit` | |||
""" | |||
@typing.overload |
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.
The stub generation removes this, will look into this again tomorrow.
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.
yes I think I mistakenly put those in manually, should be taken out and generated I think?
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.
Should be working now
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.
thank you!
Commonly used enough that having to switch to add_gate confuses people.