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
qxsimulatoris a standalone package with no dependency onqubex.qubexdepends onqxsimulatorand provides the full experiment framework (backend, measurement, etc.).- If you only need simulation utilities, install
qubex-simulatordirectly.
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qubex_simulator-1.5.0rc4.tar.gz | 56.5 kB | Without provenance | Details for qubex_simulator-1.5.0rc4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qubex_simulator-1.5.0rc4-py3-none-any.whl | Python 3 | none | any | Details for qubex_simulator-1.5.0rc4-py3-none-any.whl |
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
|
Security for qubex-simulator 1.5.0rc4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.