deltakit.explorer.Client#
- class deltakit.explorer.Client(base_url: str, timeout: int = 60000, api_version: int = 2)#
Bases:
objectThe Client class provides convenient methods to access circuit generation, noise addition, decoding, simulation, and analysis calls. To create a connection to a particular server, use the following syntax:
client = Client(base_url="https://deltakit.riverlane.com/proxy")- Parameters:
base_url – str Url of the Dektakit service endpoint.
timeout – int Request timeout, seconds.
api_version – int 1 - Long living GraphQL requests. 2 - Task-based requests.
Methods#
Given a stim circuit, changes all noise in the circuit to noise defined by user-given parameters. |
|
Accepts detectors, observables and a stim circuit with integrated noise and returns decoding results for a requested decoder. |
|
Accept raw measurement file and a clean stim circuit and return decoding results with a requested decoder. |
|
Obtain defect rates for the detectors defined in the stim circuit. |
|
Generate a STIM circuit for a quantum error correction experiment. |
|
Obtain a correlation matrix for a given set of detection events and corresponding circuit. |
|
Obtain a correlation matrix for a given set of detection events and corresponding noisy circuit. |
|
Extract detector to coordinate mapping, and defect rates for these detectors. |
|
Return a pre-configured instance of a cloud-based Deltakit client. |
|
Kill a decoding task submitted to a client. |
|
Set and validate a token. |
|
Simulate STIM circuit with Deltakit client. |
|
Trims a circuit to remove redundant detectors (detectors that do not affect the observable). |