@qbraid-core/ibm-cloud
TypeScript icon, indicating that this package has built-in type declarations

0.10.2 • Public • Published

qbraid

Stable npm

Client for interacting with IBM's Qiskit Runtime Service via the IBM Cloud API.

Installation

npm install @qbraid-core/ibm-cloud

Usage Example

import { IBMCloudClient} from '@qbraid-core/ibm-cloud';

const apiKey = 'my-api-key';
const serviceCRN = 'my-service-crn';

const client = new IBMCloudClient(apiKey: apiKey, serviceCRN: serviceCRN);

// Get a Job
const jobID = 'my-ibm-job-id';
const jobResponse = await client.getJob(jobID);
console.log("Job details: ", jobResponse);

// Get all devices
const backends = await client.getBackends();
console.log("Available backends: ", backends);

// Get a backend status
const backendName = 'ibm_marrakesh';
const backendStatus = await client.getBackendStatus(backendName);
console.log("Backend status: ", backendStatus);

License

This software is proprietary and subject to the terms of the qBraid Commercial Software License.

Package Sidebar

Install

npm i @qbraid-core/ibm-cloud

Weekly Downloads

4

Version

0.10.2

License

Proprietary

Unpacked Size

27.6 kB

Total Files

14

Last publish

Collaborators

  • qbraid-dev