qrmi.pulser package#

Submodules#

qrmi.pulser.connection module#

Pulser remote connection backed by QRMI calls.

class qrmi.pulser.connection.PulserQRMIConnection(qrmi: QuantumResource | None = None)[source]#

Bases: RemoteConnection

A connection to Pasqal QRMI resources, to submit Sequences to QPUs.

cancel_batch_jobs(batch_id: str | None = None) → None[source]#

Cancel all jobs in the batch through the qrmi.task_stop interface.

fetch_available_devices() → dict[str, Device][source]#

Fetches the devices available through this connection.

get_batch_logs(batch_id: str | None = None) → Sequence[str][source]#

Get the logs from the batch through the qrmi.task_logs interface.

submit(sequence: Sequence, wait: bool = True, open: bool = False, batch_id: str | None = None, **kwargs: Any) → RemoteResults[source]#

Submits the sequence for execution on a remote Pasqal backend.

supports_open_batch() → bool[source]#

Flag to confirm this class doesn’t support open batch creation.

qrmi.pulser.service module#

QRMI Service

class qrmi.pulser.service.QRMIService[source]#

Bases: object

Class for interacting with the QRMI resources

resource(resource_id: str) → QuantumResource[source]#

Return a single backend matching the specified resource identifier.

Parameters:

resource_id – A resource identifier, i.e. backend name for IBM Quantum.

Returns:

QRMI resource if found, otherwise None.

Return type:

QuantumResource

resources() → List[QuantumResource][source]#

Return all accessible QRMI resources.

Returns:

QRMI resources

Return type:

List[QuantumResource]

Module contents#

Pulser integration entrypoints for QRMI.

class qrmi.pulser.PulserQRMIConnection(qrmi: QuantumResource | None = None)[source]#

Bases: RemoteConnection

A connection to Pasqal QRMI resources, to submit Sequences to QPUs.

cancel_batch_jobs(batch_id: str | None = None) → None[source]#

Cancel all jobs in the batch through the qrmi.task_stop interface.

fetch_available_devices() → dict[str, Device][source]#

Fetches the devices available through this connection.

get_batch_logs(batch_id: str | None = None) → Sequence[str][source]#

Get the logs from the batch through the qrmi.task_logs interface.

submit(sequence: Sequence, wait: bool = True, open: bool = False, batch_id: str | None = None, **kwargs: Any) → RemoteResults[source]#

Submits the sequence for execution on a remote Pasqal backend.

supports_open_batch() → bool[source]#

Flag to confirm this class doesn’t support open batch creation.

class qrmi.pulser.QRMIService[source]#

Bases: object

Class for interacting with the QRMI resources

resource(resource_id: str) → QuantumResource[source]#

Return a single backend matching the specified resource identifier.

Parameters:

resource_id – A resource identifier, i.e. backend name for IBM Quantum.

Returns:

QRMI resource if found, otherwise None.

Return type:

QuantumResource

resources() → List[QuantumResource][source]#

Return all accessible QRMI resources.

Returns:

QRMI resources

Return type:

List[QuantumResource]