qailab.orca_api.networking#

Methods for communicating with psnc quantum api

Summary#

Classes:

OrcaTask

Represents a single task for orca on psnc quantum api.

Reference#

class qailab.orca_api.networking.OrcaTask(input_state, bs_angles, loop_lengths, machine, auth_token, n_samples=200, postselection=False, postselection_threshold=None, **kwargs)[source]#

Bases: object

Represents a single task for orca on psnc quantum api.

API_BASE_URL = 'https://api.quantum.psnc.pl/api/client'#
results() list[str][source]#

Get task results. Blocks the thread until results are available.

Returns:

List of bitstrings obtained from runs.

Return type:

list[str]

property status#

Task status