-
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
Divergent behaviour of controlled: GateWithRegisters.controlled
vs. Bloq.controlled
#686
Comments
I'll look at this. Since A workaround if you have access to the source code for the problematic gate is to call the correct one class MyGWR(GateWithRegisters):
...
def controlled(self, *args, **kwargs):
return Bloq.controlled(*args, **kwargs) |
Thanks! So I was using this for Hamiltonian simulation by GQSP, which uses QubitizationWalkOperator. @tanujkhattar, I believe it would be a major refactor to make it and all its dependencies Bloqs? |
Running into this error in #780. Specifically with Code to reproduce: from qualtran.drawing import show_call_graph
from qualtran.bloqs.factoring.mod_mul import MontgomeryModInv
bloq = MontgomeryModInv(bitsize=5, p=6)
graph, sigma = bloq.call_graph()
show_call_graph(graph) |
reflecting on this, we should probably change the default |
We should ideally never need the cirq behavior now that we have a mapping from the For convenience with cirq and bloq APIs and to avoid potential performance regressions; I'd suggest we make |
Ran into this issue while testing GQSP's call graph. Minimal code to reproduce:
output:
The text was updated successfully, but these errors were encountered: