Skip to content

Results are limited to Pulser v1.6.6

Product news
You are reading Pulser v1.6.6, an older version of this documentation. Go to the latest version (v1.10.0)

QutipBackendV2

class pulser_simulation.qutip_backend.QutipBackendV2(sequence, *, config=None, mimic_qpu=False)

Bases: EmulatorBackend

A backend for emulating the sequences using qutip.

Conforms to the generic API from pulser.backend.

Dedicated EmulationConfig class: pulser_simulation.QutipConfig.

Parameters:
  • sequence (Sequence) – The sequence to emulate.

  • config (EmulationConfig | None, default: None) – The configuration for the Qutip emulator.

  • mimic_qpu (bool, default: False) – Whether to mimic the validations necessary for execution on a QPU.

Attributes

default_config

Methods

run

Executes the sequence on the backend.

validate_config

Validates a given configuration for this backend.

validate_sequence

Validates a sequence prior to submission.

Signatures

run()

Executes the sequence on the backend.

Return type:

Results

classmethod validate_config(config)

Validates a given configuration for this backend.

Parameters:

config (EmulationConfig) – The configuration to validate.

Return type:

EmulationConfig

Returns:

The full configuration that will be used by the backend if the given configuration passes validation.

static validate_sequence(sequence, mimic_qpu=False)

Validates a sequence prior to submission.

Return type:

None