Skip to content

Conversation

@daxfohl
Copy link
Collaborator

@daxfohl daxfohl commented Jun 2, 2022

Fixes #5388

QASM does not support != relations required by (Measurement)KeyConditions. Thus we change parsing and QASM generation to use SympyConditions with sympy.Eq(sympy.Symbol(key), value) relation, and drop the (invalid) QASM generation for KeyConditions.

All qasm in these tests was also tested against qiskit for validity.

@CirqBot CirqBot added the size: M 50< lines changed <250 label Jun 2, 2022
@daxfohl daxfohl marked this pull request as ready for review June 2, 2022 18:24
@daxfohl daxfohl requested review from a team, cduck and vtomole as code owners June 2, 2022 18:24
@daxfohl daxfohl requested a review from maffoo June 2, 2022 18:24
@daxfohl daxfohl requested a review from dabacon June 7, 2022 02:51
@daxfohl
Copy link
Collaborator Author

daxfohl commented Jun 16, 2022

@dabacon I fixed the recommendations. Should this be merged before 0.15?

@dabacon dabacon merged commit d2aee41 into quantumlib:master Jun 27, 2022
@daxfohl daxfohl deleted the fix-qasm branch July 1, 2022 00:41
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: M 50< lines changed <250

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Classical controls output invalid qasm

3 participants