-
Notifications
You must be signed in to change notification settings - Fork 6
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
RuntimeError: Can only build replacement circuits for basic gates: QControlBox #585
Comments
For the moment, I found that by setting |
Hello, could you say a bit more about how you were using tket2, which function were you calling? |
Greetings there, Hope you are well. Gosh, I'm really embarrassed, I actually forgot to add the reproduction code. Really sorry about that. I believe I was running this: from pytket import Circuit, OpType
from pytket.circuit import Op, QControlBox
from tket2.circuit import Tk2Circuit, render_circuit_mermaid
from tket2.passes import badger_pass
setattr(
Tk2Circuit,
"_repr_markdown_",
lambda self: f"```mermaid\n{render_circuit_mermaid(self)}\n```"
)
c = Circuit(3)
CX = QControlBox(Op.create(OpType.X), 1)
c.add_qcontrolbox(CX, [0, 1])
badger_pass(rebase=False).apply(c) But now I'm getting a new error (which I wasn't getting before):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Greetings there,
Hope you are well. I am trying to add
tket2
to my library, and noticed that it doesn't supportQControlBox
. May I know when this would be added?The text was updated successfully, but these errors were encountered: