IBMHTTPClient
Static Method Summary
| Static Public Methods | ||
| public static |
async authenticate(email: string, password: string): undefined[] |
|
| public static |
async getResult(device: *, execution_id: *, access_token: *, num_retries: number, interval: number): * |
|
| public static |
async isOnline(device: *): * |
|
| public static |
Retrieves a previously run job by its ID. |
|
| public static |
async run(qasm: *, device: *, user_id: *, access_token: *, shots: *): * |
|
| public static |
async send(info: string, device: string, user: string, password: string, shots: number, verbose: boolean): * Sends QASM through the IBM API and runs the quantum circuit. |
|
| public static |
async sleep(interval: *): * |
|
Static Public Methods
public static async getResult(device: *, execution_id: *, access_token: *, num_retries: number, interval: number): * source
Return:
| * |
public static async isOnline(device: *): * source
Params:
| Name | Type | Attribute | Description |
| device | * |
Return:
| * |
public static async retrieve(device: string, user: string, password: string, jobid: string): * source
Retrieves a previously run job by its ID.
Return:
| * |
public static async run(qasm: *, device: *, user_id: *, access_token: *, shots: *): * source
Params:
| Name | Type | Attribute | Description |
| qasm | * | ||
| device | * | ||
| user_id | * | ||
| access_token | * | ||
| shots | * |
Return:
| * |
public static async send(info: string, device: string, user: string, password: string, shots: number, verbose: boolean): * source
Sends QASM through the IBM API and runs the quantum circuit.
Params:
| Name | Type | Attribute | Description |
| info | string | Contains QASM representation of the circuit to run. |
|
| device | string | Either 'simulator', 'ibmqx4', or 'ibmqx5'. |
|
| user | string | IBM quantum experience user. |
|
| password | string | IBM quantum experience user password. |
|
| shots | number | Number of runs of the same circuit to collect statistics. |
|
| verbose | boolean | If true, additional information is printed, such as measurement statistics. Otherwise, the backend simply registers one measurement result (same behavior as the projectq Simulator). |
Return:
| * |
public static async sleep(interval: *): * source
Params:
| Name | Type | Attribute | Description |
| interval | * |
Return:
| * |