quantastica / quantum-circuit

Quantum Circuit Simulator implemented in JavaScript
MIT License
243 stars 47 forks source link

shadow declaration #90

Closed dmvjs closed 2 weeks ago

dmvjs commented 2 weeks ago

https://github.com/quantastica/quantum-circuit/blob/3c526d60dd6fe9f8e0e27a3ceeff081b66b74abc/lib/qasm_import/QASMParser.js#L1655C1-L1656C1

this shadow declaration of _alt (another one exists 5LOC above it) is confusing and might cause bugs

dmvjs commented 2 weeks ago

I fixed this in a local branch