quantastica / quantum-circuit

Quantum Circuit Simulator implemented in JavaScript
MIT License
247 stars 49 forks source link

Implementation question #89

Closed dmvjs closed 3 months ago

dmvjs commented 3 months ago

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

atn deserializer expects a number[] and we pass a string in here, is this intentional?

ATNDeserializer().deserialize(serializedATN)

perak commented 3 months ago

@dmvjs the code is automatically generated by antlr4, so I guess it is intentional.