Comments (5)
FYI, as far as just trying it out, examples look to be running fine here.
from jsqubits.
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.
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.
@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.
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)
- Document the maths functions
- Fix exceptions to follow a more standard pattern HOT 1
- Allow array of bits anywhere we currently allow a bit range
- Include a 'remainingQbits' field on measurement outcomes.
- Support Complex.getPhase() HOT 1
- QState.eql uses non existent field amplitudes HOT 1
- Make use of js Math constants like Math.SQRT1_2 HOT 1
- Make jsqubits and jsqubitsmath be requirejs friendly
- Improve the objects returned by each() HOT 1
- Fix or remove usages of typeof and instanceof HOT 1
- How about refactor the project to ES6? HOT 1
- Publish new npm version HOT 3
- Decide what to do about bower support HOT 1
- dist/commonjs/index.js not found HOT 4
- Update Babel stuff HOT 1
- declaration for TypeScript HOT 8
- Provide easy to use js file (even better: url to include directly) HOT 2
- Measure and destroy a qubit HOT 4
- quantum gate conjugate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsqubits.