Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@qiskit/devs-ibm

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qiskit/devs-ibm

IBM Q engine for Qiskit for developers

  • 0.8.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

Qiskit.js devs (IBM Q)

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

Install

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

npm i @qiskit/devs-ibm

Use

:pencil: You can visit the complete example in this test.

const Cloud = require('qiskit/cloud');
const qiskit = require('qiskit/devs-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

: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.
  • 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.

Keywords

FAQs

Package last updated on 25 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc