-
Notifications
You must be signed in to change notification settings - Fork 149
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
Support CircuitOperation(use_repetition_ids=False) #533
Comments
I think the problem occurs also with In [1]: q = cirq.q(0)
In [2]: circuit = cirq.Circuit(cirq.measure(q, key='m')); circuit
Out[2]: 0: ───M('m')───
In [3]: circuit2 = cirq.Circuit(circuit.freeze().to_op()); circuit2
Out[3]: 0: ───[ 0: ───M('m')─── ]───
In [4]: import qsimcirq; qsimcirq.__version__
Out[4]: '0.12.2.dev20220422'
In [5]: result = qsimcirq.QSimSimulator().run(circuit, repetitions=10); result
Out[5]: m=0000000000
In [6]: result2 = qsimcirq.QSimSimulator().run(circuit2, repetitions=10); result2
Out[6]:
In [7]: result2.records
Out[7]: {} |
Yup, looks like we've been relying on |
One additional issue: |
I think some specific logic for finding measurement operations would be generically useful. For example, in |
Highlighted in #531 - apparently
CircuitOperation(use_repetition_ids=False)
does not convert properly to qsim due to not finding the associated measurements.The text was updated successfully, but these errors were encountered: