Code Monkey home page Code Monkey logo

Comments (5)

omphalos avatar omphalos commented on July 20, 2024

FYI, as far as just trying it out, examples look to be running fine here.

from jsqubits.

davidbkemp avatar davidbkemp commented on July 20, 2024

Sorry @scottbyrns, the last github release was a bit broken. Unfortunately, no one had pointed that out to me.

Also, the instructions for running the examples needed updating. The migration to ES6 has made things more complicated than I anticipated.

Arrrgg... having just made a new release, I have just realised that the README.md in the examples/algorithms is still missing the vital point that you need to still run npm install.

Unfortunately, the ES6 stuff seems to mean I can't just upload a version with the dist directory. I will look further into how I can make this a little easier.

For now, you should find you can download the latest release and then try the following (you will need at least version 6.3.0 of npm and v8.9.4 of node):

npm install
npm run-script example examples/algorithms/deutsch.js

or

npm install
node --require babel-core/register examples/algorithms/deutsch.js

from jsqubits.

davidbkemp avatar davidbkemp commented on July 20, 2024

This should also work with the new release v1.0.1

$ npm install
$ node
> qubits = require('./dist/es/index.js').default
> qubits('|0101>').hadamard(qubits.ALL).toString()

from jsqubits.

davidbkemp avatar davidbkemp commented on July 20, 2024

@scottbyrns : What would you consider sufficient for this? Is it OK to require users to:

  • install node/npm
  • run npm install
  • then npm run-script example examples/algorithms/deutsch.js

If so, then hopefully my updates to the README files is sufficient.

Or were you hoping for executables that could run on Linux, Macos, and Windows?

from jsqubits.

davidbkemp avatar davidbkemp commented on July 20, 2024

I am reluctant to include the dist folder in the github releases. Instead, the documentation has been updated to make it clear that you need to run npm install before use.

The dist folder is included in the npm bundle published to npmjs.com.

from jsqubits.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.