QISKit.js algorithms (IBM Q)
IBM Q engine (chip and remote simulator) for the QISKit algorithms package.
Install
:coffee: Install Node.js v8 and then:
npm i @qiskit/devs-ibm
Use
:pencil: You can visit the complete example in this test.
const qiskit = require('@qiskit/devs-ibm');
console.log('Version');
console.log(qiskit.version);
API
:eyes: Please check the main doc. The method signature is the same but:
- As expected, the
engine
parameter is omitted here. - All algorithms need a background job, so a
jobId
is returned. - The
token
parameter is mandatory. Provided by the login
method of the qiskit-cloud package. - An extra one
userId
is also needed, same that for the last option.