Skip to main content

Module quantum_pasqal

Module quantum_pasqal 

Source
Expand description

Pasqal Cloud backend — live implementation (EXPERIMENTAL, 0.6.x).

Wires up Auth0 service-account authentication, batch submission, polling, and result retrieval against https://apis.pasqal.cloud. Intended to work against the free EMU_FREE device with zero QPU-hour cost.

Known caveat: the exact JSON schema produced by Pulser’s Sequence.to_abstract_repr() is not fully documented in Rust. The builder in build_sequence_json implements the stable subset (AnalogDevice, global Rydberg channel, constant pulse) that matches Pulser v0.15+ output for simple cases. For complex sequences, generate the JSON from the Pulser Python SDK and submit via submit_raw_sequence.

See .planning/development_notes/pasqal-integration.md §6 and §13.

Feature: quantum-pasqal (off by default).

Structs§

PasqalBackend
Live Pasqal backend. Holds a reqwest client and a cached Auth0 token.
PasqalConfig

Enums§

PasqalDevice
Pasqal Cloud device selector.

Functions§

build_sequence_json
Build a Pulser abstract-repr-compatible JSON for a constant-pulse evolution on a named 2D register. Best-effort for AnalogDevice with a single global Rydberg channel. Matches the stable subset of Pulser v0.15+ output.
parse_results
Parse Pasqal measurement bitstrings into a QuantumResults with per-atom Rydberg-excitation probabilities.