Skip to content
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

Measurement gates cannot be controlled #1482

Closed
scarrazza opened this issue Oct 9, 2024 · 2 comments · Fixed by #1483
Closed

Measurement gates cannot be controlled #1482

scarrazza opened this issue Oct 9, 2024 · 2 comments · Fixed by #1483
Labels
bug Something isn't working

Comments

@scarrazza
Copy link
Member

@marcorossi5 @BrunoLiegiBastonLiegi I am trying to execute the following simple code in simulation mode:

import qibo
c = qibo.Circuit(17)
c.add(qibo.gates.H(12))
c.add(qibo.gates.M(12))
r = client.run_circuit(c, nshots=100, device="sim").result()

however this generates:

[Qibo 0.2.12|ERROR|2024-10-09 21:57:11]: Measurement gates cannot be controlled.
[2024-10-09 21:57:11,353] ERROR: Measurement gates cannot be controlled.

This issue does not happen in ssh mode.

@scarrazza scarrazza added the bug Something isn't working label Oct 9, 2024
@scarrazza
Copy link
Member Author

scarrazza commented Oct 9, 2024

I think this might be a bug in qibo 0.2.12:

import qibo
c = qibo.Circuit(17)
c.add(qibo.gates.H(12))
c.add(qibo.gates.M(12))

cc = qibo.Circuit.from_dict(c.raw)

Returns:

[Qibo 0.2.12|ERROR|2024-10-09 22:04:08]: Measurement gates cannot be controlled.
[2024-10-09 22:04:08,046] ERROR: Measurement gates cannot be controlled.

@scarrazza
Copy link
Member Author

@BrunoLiegiBastonLiegi btw, I think the bug is related to the printing message, the output is computed correctly.

@scarrazza scarrazza transferred this issue from qiboteam/qibo-client Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant