NodeJS version of ProjectQ
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci
.github/ISSUE_TEMPLATE
examples
scripts
src
test
.babelrc
.esdoc.json
.eslintrc
.gitignore
.npmignore
LICENSE
README.md
binding.gyp
libq.gyp
package-lock.json
package.json
test.js
yarn.lock

README.md

Q-js

NodeJS version of ProjectQ

CircleCI build status: CircleCI

NPM

install

  1. use git to clone the repository
  2. run yarn install
  3. run yarn build to build native cpp simulator
  4. run yarn test, check examples

notice

  1. Most of the class have same name with the original ProjectQ project
  2. Using camelcase rules to renamed most class methods. get_inverse has been changed to getInverse.
  3. Some class (like GridMapper) have too much arguments for it's constructor, so changed to only pass an Object which contains all original arguments.
  4. Python tuple type has been ported to Javascript Array. It's the programmer's responsibility to make sure not to mutate immutable object, but not the language.
  5. ibm and GridMapper is still under porting.
  6. Issues and pull requests are welcome.