We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
GateWithRegisters.controlled
#848 (comment)
Replacing Controlled(self.U, CtrlSpec(cvs=0)) with self.U.controlled(control_values=[0]) in GQSP results in:
Controlled(self.U, CtrlSpec(cvs=0))
self.U.controlled(control_values=[0])
AttributeError: 'BloqAsCirqGate' object has no attribute 'pretty_name'
Minimal code to reproduce error:
from qualtran.bloqs.basic_gates import XPowGate from qualtran.bloqs.qsp.generalized_qsp import GeneralizedQSP from qualtran.drawing import show_call_graph gqsp = GeneralizedQSP.from_qsp_polynomial(XPowGate(), (0.5, 0.5)) g, _ = gqsp.call_graph(max_depth=1) show_call_graph(g)
The text was updated successfully, but these errors were encountered:
I can't reproduce this on main. There was a recent PR merged that moved controlled to the bloqs one; maybe @tanujkhattar knows more
main
controlled
Sorry, something went wrong.
It still crashes for me on main, on replacing
Qualtran/qualtran/bloqs/qsp/generalized_qsp.py
Line 404 in 43e3032
counts.add((self.U.controlled(control_values=[0]), degree - self.negative_power))
(in build_call_graph)
build_call_graph
Successfully merging a pull request may close this issue.
#848 (comment)
Replacing
Controlled(self.U, CtrlSpec(cvs=0))
withself.U.controlled(control_values=[0])
in GQSP results in:Minimal code to reproduce error:
The text was updated successfully, but these errors were encountered: