-
Notifications
You must be signed in to change notification settings - Fork 12
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
Incorrect simulation of nested classical controls on the AerBackend #442
Comments
Hi @dandanua, Thank you for raising an issue. We'll take a look and get back to you. Can I ask which version of pytket/pytket-qiskit you are using? |
Hi, it's the one that Quantinuum Nexus is using in their Jupyter Lab, within the standard Python kernel. I don't know how to check the version number from there. |
Ah thanks, good to know. thats enough for me. I'll dig into the issue soon. I think you should just be able to do a
|
Version: 0.56.0 BTW, I've tried to run the same circuit against the H1-Emulator using the "getting-started" notebook workflow. The compilation job ran successfully and produced some transformed circuit but the execution job has failed with the error
I'm not sure how to fix this, since I already execute the compiled circuit as in the guide. |
hmm strange, I'll make a note to look into that as well as the issue above. The transformed circuit link seems not to work for me. |
You must have blocked access to imgur. Here is another link |
I was trying a fairly simple test of nested classical controls in quantinuum jupyter lab and ran into an issue.
Consider a setup with 3 qubits and 3 classical registers. On the first qubit we use the H gate and then prepare a Bell state on the other two qubits using a standard circuit controlled by the state of the first qubit. However, when the Bell state preparation is done using an equivalent classically controlled operation (well, not quite equivalent, but the simulation result should be the same), the simulation result of the whole setup is incorrect. Here is the code:
which returns
while it should return
as in the case of using CX in the custom nested gate.
The text was updated successfully, but these errors were encountered: