quantastica / quantum-circuit

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

ReferenceError with bundler #76

Closed 28Smiles closed 2 years ago

28Smiles commented 2 years ago

If used with a bundler the stateAsArray function throws an ReferenceError. Simple workaround is to insert a var to limit the scope. Is this on purpose?

https://github.com/quantastica/quantum-circuit/blob/0a84e31d6b6c1e058e9e28741e156b813e486693/lib/quantum-circuit.js#L12440

perak commented 2 years ago

Fixed. @28Smiles thank you for bug report.