This package has been deprecated

Author message:

Archived project

@qiskit/algo-ibm

0.9.0 • Public • Published

Qiskit.js algo (IBM Q)

IBM Q engine (chip and remote simulator) for the Qiskit algorithms package.

Install

Install lastest Node.js stable version (or LTS) and then:

npm i @qiskit/algo-ibm

Use

📝 You can visit the complete example in this test.

const Cloud = require('qiskit/cloud');
const qiskit = require('qiskit/algo-ibm');

const cloud = new Cloud();
cloud.login('YOUR_PERSONAL_TOKEN_HERE')
  .then(() => {
    cloud.backends()
      .then(data => {
        console.log('Backends:');
        console.log(data);
      });

    qiskit.random({
      custom: cloud,
      // default: simulator
      // engine: "ibmqx4"
    })
      .then(rand => console.log(`Random: ${rand}`))
  });

API

👀 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.
  • About the options:
    • custom (object): Mandatory here, it should be a logged qiskit-cloud instance.
    • backend (string): Name of the backend to use. (default: simulator)
    • shots (number): Number of times to run the circuit. (default: 1)
    • maxCredits (number): Max number of the credits to run this job. The task will be cancelled if it needs more.

Package Sidebar

Install

npm i @qiskit/algo-ibm

Weekly Downloads

7

Version

0.9.0

License

Apache-2.0

Unpacked Size

21.3 kB

Total Files

8

Last publish

Collaborators

  • abdonrd
  • atilag
  • dbevenius
  • jelcaf
  • jesusprubio
  • qiskit-team