Metadata-Version: 2.4
Name: qulomb
Version: 0.1.0a1
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Rust
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Dist: numpy>=2.0
Requires-Dist: quri-parts-core>=0.28.0 ; extra == 'quri'
Requires-Dist: quri-parts-circuit>=0.28.0 ; extra == 'quri'
Requires-Dist: quri-parts-rust>=0.28.0 ; extra == 'quri'
Requires-Dist: qulacs ; extra == 'reference'
Provides-Extra: quri
Provides-Extra: reference
License-File: LICENSE
License-File: NOTICE
License-File: THIRD_PARTY_NOTICES.txt
Summary: Vendor-neutral GPU acceleration for quantum circuit simulation
Keywords: quantum-computing,gpu,simulation,quri-parts
Author: UEDA, Koki
License: Qulomb original code: Apache-2.0. Bundled third-party components retain their
	own terms; see LICENSE, NOTICE and THIRD_PARTY_NOTICES.txt. Distribution-wide
	license expression pending publication review.
Requires-Python: >=3.12
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Issues, https://github.com/uedakoki/qulomb/issues
Project-URL: Repository, https://github.com/uedakoki/qulomb

# Qulomb

English | [日本語](README.ja.md)

Qulomb is an experimental, portable GPU statevector simulator for quantum circuits,
with Apple Silicon / Metal as its first evaluation target. It uses
[CubeCL](https://github.com/tracel-ai/cubecl) for backend portability and
provides an optional [QURI Parts](https://github.com/QunaSys/quri-parts)
adapter. The goal is to explore GPU simulation without requiring CUDA, using
explicit backend selection rather than a promise of support on every CubeCL target.

Qulomb is pre-alpha and is not published to PyPI yet. Build it from a repository
checkout or install a local candidate wheel; APIs and performance may change
before a release. There is no stable API guarantee.

The first wheel release is being prepared for Apple Silicon, with CPU and Metal
and the optional QURI extra on ordinary CPython 3.12 / 3.13 (cp312/cp313).
The candidates were tested on macOS 27.0; older macOS versions and macOS 27.0.1
remain unverified. Python 3.14 is deferred for this first QURI evaluation pending
upstream Qulacs wheels; the retained cp314 wheel is an unpublished validation artifact.
[Supported environments and local wheel installation](docs/distribution.md) are documented separately. Qulomb is not yet available on PyPI.

## Install from a checkout

The [source setup](CONTRIBUTING.md#prerequisites) uses Git, Rust/rustup, uv,
and a native compiler/linker. uv selects Python 3.13 and installs the locked
development tools; Nix is an optional alternative.

```bash
git clone https://github.com/uedakoki/qulomb.git
cd qulomb
uv python install 3.13
uv sync --locked --all-groups --extra quri
uv run --locked --extra quri python examples/bell_state.py
```

Rust 1.99.1/rustfmt/Clippy are selected by `rust-toolchain.toml`; the CPU MSRV
remains 1.85. See [CONTRIBUTING](CONTRIBUTING.md) for prerequisites, checks, and
rebuilding after native Rust edits, and the
[checkout instructions](docs/user_guide.md#install-a-checkout) for explicit Metal.

## CPU quickstart

```python
from qulomb import CircuitBuilder, Simulator

circuit = CircuitBuilder(2).h(0).cnot(0, 1).build()
state = Simulator(device="cpu").run(circuit)

print(state.to_numpy())
print(state.probabilities())
```

Qulomb uses little-endian qubit indexing (`q0` is the least-significant bit).
`Simulator(device="cpu")` uses `f32` by default. See the
[user guide](docs/user_guide.md) for initial states, shots, precision, error
handling, Metal, and QURI Parts examples.

## Current contract

The [compatibility matrix](docs/compatibility.md) is the entry point
for the current support contract. CPU and Metal `f32` statevector execution are
formal surfaces; CPU `f64` and explicit CUDA `f32` statevector execution are
experimental. Backend selection is explicit and does not silently fall back to a
different device. The matrix links to user-facing reference material.
The QURI extra requires core/circuit/rust `>=0.28.0` (locked to `0.28.0`).

Useful entry points:

- [API reference generation and viewing](docs/api_reference.md)
- [Python API reference](docs/api_reference.md)
- [QURI Parts guide](docs/user_guide.md#quri-parts)
- [Examples](examples/)
- [Reproducible Apple Silicon VQE and noise workflows](docs/apple_silicon_workflows.md)
- [Documentation map](docs/README.md)

## Development

Use `just` after the [source setup](CONTRIBUTING.md#setup-and-build) for repository commands. Common commands are:

```bash
just test       # CPU-safe tests
just check      # normal quality gates
just test-metal # Metal build, diagnostics, and tests when available
```

See [CONTRIBUTING.md](CONTRIBUTING.md) for contributor and verification rules.

## License

Copyright 2026 UEDA, Koki

Qulomb's original code and documentation are licensed under [Apache-2.0](LICENSE).
Third-party components retain their own licenses; see [NOTICE](NOTICE) and
[third-party notices](THIRD_PARTY_NOTICES.txt).
The owner has selected PyPI for future distribution. Publication requires a
separate explicit instruction from the owner. The distribution-wide license
expression and native redistribution conditions remain under review; these
notices do not certify that all publication conditions have been resolved.

User-facing documentation is edited in Japanese first and translated into English.


Report ordinary bugs and security issues through
[GitHub Issues](https://github.com/uedakoki/qulomb/issues).

