push
github
Force decimal points in OpenQASM 2 floats (#10532) (#10536) * Force decimal points in OpenQASM 2 floats The letter of the OpenQASM 2 specification has a regex defining floating-point literals that requires a decimal point, even in the presence of an exponential component. This is unusual for most programming languages, but Qiskit's exporter should follow the spec as close as we can to increase interop. Our parser accepts floats with an exponent and no decimal point as a minor syntax extension, unless in strict mode. * Simplify English (cherry picked from commit 4722c50a5) Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
3 of 3 new or added lines in 1 file covered. (100.0%)
72924 of 84907 relevant lines covered (85.89%)
61177.51 hits per line