Q-js
NodeJS version of ProjectQ
install
- use
git
to clone the repository - run
yarn install
- run
yarn build
to build native cpp simulator - run
yarn test
, check examples
notice
- Most of the
class
have same name with the original ProjectQ project - Using
camelcase
rules to renamed most class methods.get_inverse
has been changed togetInverse
. - Some class (like
GridMapper
) have too much arguments for it's constructor, so changed to only pass anObject
which contains all original arguments. - Python
tuple
type has been ported to JavascriptArray
. It's the programmer's responsibility to make sure not to mutate immutable object, but not the language. ibm
andGridMapper
is still under porting.- Issues and pull requests are welcome.