Incorrect Numeric Expression Syntax in QASM Export #6550
Labels
area/interop
area/qasm
kind/bug-report
Something doesn't seem to work.
triage/accepted
there is consensus amongst maintainers that this is a real bug or a reasonable feature to add
Milestone
Description of the issue
The
to_qasm
method exports numeric expressions in a format not fully compliant with the OpenQASM 2.0 specification. Expressions like1e-10
are outputted without a leading digit or dot, which could lead to syntax errors in strict OpenQASM parsers.How to reproduce the issue
Result
Cirq version
1.3.0
The text was updated successfully, but these errors were encountered: