Skip to main content

Quantum Simulation Environment (QSE)

Description

The Quantum Simulation Environment (QSE) is a flexible, modular, high-level Python library designed to decouple the essence of the quantum simulation problem from the technicalities of the backend software/hardware.

Architectural Overview

QSE organizes these concerns into modular components. The user interacts primarily with the Qbits and Lattices to frame the problem, then attaches a Calculator.

Core Components

1. Framing the System (Qbits)

Qbits class represents the spatial setup, where you define the "What.". It is a collection of quantum degrees of freedom defined by their coordinates. Instead of thinking about qubits as abstract indices in a register, you treat them as physical entities with coordinates.

  • Arbitrary Coordinates: Place qubits exactly where you need them.
  • Lattice Generation: Quickly build 2D/3D grids (Square, Kagome, Triangular, etc.).

2. Solving the Problem (Calculator)

The Calculator is a high-level wrapper. It defines the interaction between the quantum degrees of freedom represented by the Qbits. Once Qbits are defined, you "attach" them to a calculator. The calculator translates your physical setup into the specific language required by the backend (e.g., Pulser's pulses or QuTiP's Hamiltonians).

Quick Start: Defining a Lattice

This example shows how easily a physical system on a lattice can be defined without any backend specific code.

import qse

# 1. Frame the problem: Create a 4x4 square lattice
qsqr = qse.lattices.square(
   lattice_spacing=2.0,
   repeats_x=4, repeats_y=4)

# 2. Visualise the lattice
qsqr.draw(radius=5.0)

# 3. Choose your backend calculator
# calc = qse.calc.Pulser(...)
# calc.qbits = qsqr # attach the system

Qbits

Qbit is the smallest class that represents just one qubit. Qbits is the primary class that represents a collection of qubits. It can be instantiated by providing a list of coordinates, or as an empty class. See the Qbits examples for more details.

Calculator

Calculators are high level wrappers that let us offload the quantum problem to several backends. Currently the list of backends supported are following, and they largely support analog quantum simulation.

🎯 The Philosophy: Separation of Concerns

The core value of QSE is the strict separation between Problem Framing and Problem Execution

Phase Responsibility User Focus
Problem Framing Qbits & Lattices Defining geometry, positions, and quantum degrees of freedom.
Backend Execution Calculators Handling SDK-specific syntax, hardware constraints, and simulators.

📍Position-Dependent Quantum Degrees of Freedom

Unlike standard gate-based frameworks where qubits are abstract entities in a register, QSE treats qubits as physical objects with coordinates. This is crucial for simulations where the interaction strength between qubits is a function of their spatial separation.

Why Positions Matter

In many physical implementations of quantum simulators—such as Rydberg Atom Arrays or Trapped Ions—the Hamiltonian of the system is governed by the distance $R_{ij}​=|{\bf R}_i - {\bf R}_j|$ between qubits $i$ and $j$:

$$ H = \sum_i \Omega_i\sigma_i^x - \sum_i \delta_i n_i + \sum_{i<j}{C_6 \over |{\bf R}_i - {\bf R}_j|^6} n_i n_j $$

In QSE, you don't manually calculate these interaction terms. By defining the spatial degrees of freedom (the coordinates), QSE allows the backend calculators to automatically derive the physics based on the geometry you've framed.

The Mapping Process

  1. Define Geometry: You place qubits in a 1D, 2D, or 3D arrangement.
  2. Assign Degrees of Freedom: Each qubit is assigned quantum properties (e.g., ground and Rydberg states).
  3. Automatic Interaction Mapping: The Calculator uses the spatial data to build the interaction matrix (e.g., $\frac{1}{r^6}$ or $\frac {1}{r^3}$ scaling) specific to that backend’s hardware logic.

Status & Contribution

QSE is currently under active development (TRL 7-8). This project was initially developed and supported by the HPCQS project and is currently supported by the QEX project. We are focused on expanding our calculator suite to support more backends and post-processing tools.

Target Users

Scientific researchers in quantum optimization and many-body physics, are primary users of this package.

Installation

See the installation page.

Contributing

See the contributing page.

By keeping the problem definition independent of the backend, QSE ensures that the computational workflow remains portable even as the quantum hardware landscape changes.

Metadata

Release files for qse 1.1.15

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

Source distribution (sdist)

Source distribution for qse 1.1.15
File Size Uploaded Provenance Actions
qse-1.1.15.tar.gz 50.7 kB With provenance Details for qse-1.1.15.tar.gz

Built distribution (wheel)

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

Total release size: 106.3 kB

Release files / qse-1.1.15.tar.gz

Download URL qse-1.1.15.tar.gz
Size 50.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ad3a61f9f4a8cde9a0bcd430acdd164826ad706ad9059852a16fd99475dd8830
BLAKE2b-256 checksum
How to use checksums
4f398a8fefb10e98b49d12e9ef132e0eeb61aaa051f1a74b0b54aa2a9597fabb
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 18, 2026.

Transparency log

Release files / qse-1.1.15-py3-none-any.whl

Download URL qse-1.1.15-py3-none-any.whl
Size 55.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6bef4dfb35204c2885a3afa97e7dffd8ca26dcc0a73401d4e85cb09c2dcf22d2
BLAKE2b-256 checksum
How to use checksums
8ea6352d69f346fc422fffccc46711d53ae0934f323e3aaacf0b027904890646
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 18, 2026.

Transparency log

Security for qse 1.1.15

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 qse-1.1.15.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 18, 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

1.1.15 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