Skip to content

Results are limited to the current section: Cloud services

Product news

pasqal_cloud.backends

Defines Pasqal specific backends.

RemoteEmulatorBackend(sequence, connection, *, config=None, mimic_qpu=False)

Bases: RemoteBackend, EmulatorBackend

Source code in pasqal_cloud/backends.py
def __init__(
    self,
    sequence: pulser.Sequence,
    connection: RemoteConnection,
    *,
    config: EmulationConfig | None = None,
    mimic_qpu: bool = False,
) -> None:
    RemoteBackend.__init__(
        self,
        sequence=sequence,
        connection=connection,
        mimic_qpu=mimic_qpu,
    )
    EmulatorBackend.__init__(
        self,
        sequence,
        config=config,
        mimic_qpu=mimic_qpu,
    )

RemoteMPSBackend(sequence, connection, *, config=None, mimic_qpu=False)

Bases: RemoteEmulatorBackend

Backend for executing quantum programs using the EMU-MPS emulator.

The config supports various fields. For a complete list of accepted parameters (passed as **kwargs), refer to the official EMU-MPS documentation: https://pasqal-io.github.io/emulators/latest/emu_mps/api/#mpsconfig

PARAMETER DESCRIPTION
sequence

The quantum sequence to execute on the backend.

TYPE: Sequence

connection

An open PasqalCloud connection.

TYPE: RemoteConnection

config

An EmulationConfig object to configure the backend. If not provided, the default configuration will be used.

TYPE: EmulationConfig | None DEFAULT: None

mimic_qpu

Whether to mimic the validations required for execution on a QPU.

TYPE: bool DEFAULT: False

Source code in pasqal_cloud/backends.py
def __init__(
    self,
    sequence: pulser.Sequence,
    connection: RemoteConnection,
    *,
    config: EmulationConfig | None = None,
    mimic_qpu: bool = False,
) -> None:
    RemoteBackend.__init__(
        self,
        sequence=sequence,
        connection=connection,
        mimic_qpu=mimic_qpu,
    )
    EmulatorBackend.__init__(
        self,
        sequence,
        config=config,
        mimic_qpu=mimic_qpu,
    )

RemoteSVBackend(sequence, connection, *, config=None, mimic_qpu=False)

Bases: RemoteEmulatorBackend

Backend for executing quantum programs using the EMU-SV emulator.

The config supports various fields. For a complete list of accepted parameters (passed as **kwargs), refer to the official EMU-SV documentation: https://pasqal-io.github.io/emulators/latest/emu_sv/api/#svconfig

PARAMETER DESCRIPTION
sequence

The quantum sequence to execute on the backend.

TYPE: Sequence

connection

An open PasqalCloud connection.

TYPE: RemoteConnection

config

An EmulationConfig object to configure the backend. If not provided, the default configuration will be used.

TYPE: EmulationConfig | None DEFAULT: None

mimic_qpu

Whether to mimic the validations required for execution on a QPU.

TYPE: bool DEFAULT: False

Source code in pasqal_cloud/backends.py
def __init__(
    self,
    sequence: pulser.Sequence,
    connection: RemoteConnection,
    *,
    config: EmulationConfig | None = None,
    mimic_qpu: bool = False,
) -> None:
    RemoteBackend.__init__(
        self,
        sequence=sequence,
        connection=connection,
        mimic_qpu=mimic_qpu,
    )
    EmulatorBackend.__init__(
        self,
        sequence,
        config=config,
        mimic_qpu=mimic_qpu,
    )

RemoteEmuFreeBackend(sequence, connection, *, config=None, mimic_qpu=False)

Bases: RemoteEmulatorBackend

Backend for executing quantum programs using pulser-simulation (QuTiP).

The config supports various fields. For a complete list of accepted parameters (passed as **kwargs), refer to the official documentation: https://pulser.readthedocs.io/en/stable/apidoc/_autosummary/pulser_simulation.QutipConfig.html#pulser_simulation.QutipConfig

PARAMETER DESCRIPTION
sequence

The quantum sequence to execute on the backend.

TYPE: Sequence

connection

An open PasqalCloud connection.

TYPE: RemoteConnection

config

An EmulationConfig object to configure the backend. If not provided, the default configuration will be used.

TYPE: EmulationConfig | None DEFAULT: None

mimic_qpu

Whether to mimic the validations required for execution on a QPU.

TYPE: bool DEFAULT: False

Source code in pasqal_cloud/backends.py
def __init__(
    self,
    sequence: pulser.Sequence,
    connection: RemoteConnection,
    *,
    config: EmulationConfig | None = None,
    mimic_qpu: bool = False,
) -> None:
    RemoteBackend.__init__(
        self,
        sequence=sequence,
        connection=connection,
        mimic_qpu=mimic_qpu,
    )
    EmulatorBackend.__init__(
        self,
        sequence,
        config=config,
        mimic_qpu=mimic_qpu,
    )