Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

qubex-simulator

PyPI distribution: qubex-simulator. Python import: qxsimulator (unchanged).

pip install "qubex-simulator==1.5.0rc4"

qxsimulator is the quantum system simulation layer extracted from the Qubex project. It contains quantum system models, control signal definitions, and simulation utilities that higher-level packages like qubex build on.

Relationship to qubex

  • qxsimulator is a standalone package with no dependency on qubex.
  • qubex depends on qxsimulator and provides the full experiment framework (backend, measurement, etc.).
  • If you only need simulation utilities, install qubex-simulator directly.

Requirements

  • Python 3.10 or higher

Installation

# pip
pip install "qubex-simulator @ git+https://github.com/amachino/qubex.git@v1.5.0rc4#subdirectory=packages/qxsimulator"

# uv
uv pip install "qubex-simulator @ git+https://github.com/amachino/qubex.git@v1.5.0rc4#subdirectory=packages/qxsimulator"

Gate targets and fidelity spaces

Build target operations by object label. Named static gates include the Qubex Clifford names, common one- and two-qubit gates, ZX90, BSWAP, and SQRT_BSWAP. Build parameterized operations with a Hermitian generator and gates.rotation().

import numpy as np

from qxsimulator import QuantumSystem, Transmon, gates

q04 = Transmon(label="Q04", dimension=3, frequency=5.0)
q01 = Transmon(label="Q01", dimension=3, frequency=5.2)
system = QuantumSystem(objects=[q04, q01])

cz = system.unitary({"Q04-Q01": "CZ"})
ef_x = system.unitary({"Q04": gates.X}, levels={"Q04": (1, 2)})
exchange = gates.rotation((gates.XX + gates.YY) / 2, np.pi / 2)

QuantumSystem.unitary() embeds each gate in the full physical Hilbert space and leaves unselected levels unchanged. Fidelity methods evaluate the computational subspace by default. Pass levels="full" for the complete physical space or a mapping such as levels={"Q04": (1, 2)} to override the evaluated levels of selected objects. Fidelity methods also accept the labeled gate mapping directly as target_unitary; a level mapping then controls both target embedding and evaluation.

gates.rotation(generator, angle) evaluates exp(-1j * angle * generator / 2). The generator expression therefore owns the interaction normalization and sign.

pyproject.toml

[project]
dependencies = [
  "qubex-simulator @ git+https://github.com/amachino/qubex.git@v1.5.0rc4#subdirectory=packages/qxsimulator",
]

Development

git clone -b develop https://github.com/amachino/qubex.git

cd qubex/packages/qxsimulator

uv sync

Metadata

Release files for qubex-simulator 1.5.0rc4

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

Source distribution (sdist)

Source distribution for qubex-simulator 1.5.0rc4
File Size Uploaded
qubex_simulator-1.5.0rc4.tar.gz 56.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qubex-simulator 1.5.0rc4
File Interpreter ABI Platform
qubex_simulator-1.5.0rc4-py3-none-any.whl Python 3 none any Details

Total release size: 125.9 kB

Release files / qubex_simulator-1.5.0rc4.tar.gz

Download URL qubex_simulator-1.5.0rc4.tar.gz
Size 56.5 kB
Tags Source
SHA-256 checksum
How to use checksums
39add01edb0b9d751ea4d87c384d18169ced92897c6e9c12876a32145aa49f01
BLAKE2b-256 checksum
How to use checksums
57a8cb7a1d5b9cbb1d7dcbbb9f480c39868603635d8a32e65a4d4d28e8afede7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.18

Release files / qubex_simulator-1.5.0rc4-py3-none-any.whl

Download URL qubex_simulator-1.5.0rc4-py3-none-any.whl
Size 69.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
519f6b210b43a66674ab2cae991099f7d061e11d5ace9c1e163db3519c41e865
BLAKE2b-256 checksum
How to use checksums
669e546c23624971dc727d476c82515be87c4f55590bf1ab09bc214a8a64adfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.18

Release history Release notifications | RSS feed

This release

1.5.0rc4 This release

2 release files

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