Skip to main content

fastqsim

FastQSim SDK — submit and manage quantum simulation jobs on the FastQubit platform using OpenQASM 3.0.

Installation

pip install fastqsim

Quick Start

import fastqsim

# Initialise with your pod token (starts with fqp_)
fastqsim.init("fqp_your_pod_token_here")

from fastqsim import FastQSimClient, RunArgs, SimulationType

client = FastQSimClient()

qasm = """
OPENQASM 3.0;
qubit[2] q;
h q[0];
cx q[0], q[1];
measure q;
"""

# Submit a job
job = client.run(RunArgs(
    qasm_input=qasm,
    shots=1024,
    simulation_type=SimulationType.STATEVECTOR,
))

# Poll until done, then fetch result
result = client.get_result(job.id)
print(result.counts)   # e.g. {'00': 512, '11': 512}

Simulation Types

Type Description
statevector Full state-vector (default)
density_matrix Noisy / open-system simulation
mps Matrix Product State (low-entanglement)
chp Clifford / stabilizer (Clifford gates only)

API

from fastqsim import (
    init, reset,              # module-level helpers
    FastQSimClient,           # main client class
    Job, Result, Session,     # data types
    JobStatus, SimulationType, RunArgs,
    # exceptions:
    FastQSimError, AuthenticationError, JobFailedError,
    JobTimeoutError, ValidationError, QuotaExceededError,
    # ... (15 exception types total)
)

FastQSimClient methods

Method Description
client.run(args) Submit a job, returns Job
client.get_result(job_id) Fetch result (polls until complete)
client.cancel(job_id) Cancel a queued/running job
client.get_session() Get current session info

Requirements

  • Python >= 3.8
  • requests >= 2.28

Documentation

Full docs at https://aneeq-ahmed-malik.github.io/QSim/

License

MIT

Metadata

Release files for fastqsim 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastqsim 0.1.1
File Size Uploaded Provenance Actions
fastqsim-0.1.1.tar.gz 19.1 kB With provenance Details for fastqsim-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastqsim 0.1.1
File Interpreter ABI Platform Actions
fastqsim-0.1.1-py3-none-any.whl Python 3 none any Details for fastqsim-0.1.1-py3-none-any.whl

Total release size: 38.6 kB

Release files / fastqsim-0.1.1.tar.gz

Download URL fastqsim-0.1.1.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
88b1063522e00baece8f555a573170b906d302bd0d5d83b7b94d884766e6ea4e
BLAKE2b-256 checksum
How to use checksums
ab5ab5578b034c56f5dd9ca811b113811a2470c1a9d36b56d5cbbb68ed2c50ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 12, 2026.

Transparency log

Release files / fastqsim-0.1.1-py3-none-any.whl

Download URL fastqsim-0.1.1-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31e419213ddafa565ecb0bc9e9e35a5839811dc7b8cb1db4d8e92a936a7f33cd
BLAKE2b-256 checksum
How to use checksums
3924382c35094e3c265127a6d1d3de8debecac1aee25ea481b803bf8262046dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 12, 2026.

Transparency log

Security for fastqsim 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fastqsim-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page