Only support ES modules
For this release:
- the javascript can now be used directly in modern browsers and Node version 15.
- no longer support CommonJS modules. To use v2.0.0 you need to import the code as an ES module using
import. See the README.md for more details on usage. - moves static
ComplexconstantsZERO,ONE,SQRT2, andSQRT1_2fromComplexto the top levelQubitsobject.
This is because Safari does not yet support static constant class declarations. Note after making this release I have figured out a work around. Perhaps they can be restored in a subsequent release.