Metadata-Version: 2.4
Name: openqml
Version: 0.44.0
Summary: Quantum-classical hybrid AI, quantitative research and cross-framework quantum programming
Author: OpenQML contributors
License-Expression: Apache-2.0
Project-URL: Repository, https://github.com/OpenQML-org/OpenQML
Keywords: quantum,machine-learning,quantitative-finance,pytorch,jax,interoperability
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: packaging>=23
Requires-Dist: psutil>=5.9
Requires-Dist: numpy>=1.24
Provides-Extra: torch
Requires-Dist: torch>=2.4.1; (platform_system != "Darwin" or platform_machine != "x86_64") and extra == "torch"
Requires-Dist: torch>=2.2; (platform_system == "Darwin" and platform_machine == "x86_64") and extra == "torch"
Requires-Dist: numpy<2,>=1.26; (platform_system == "Darwin" and platform_machine == "x86_64") and extra == "torch"
Provides-Extra: jax
Requires-Dist: jax>=0.4.30; extra == "jax"
Requires-Dist: optax>=0.2; extra == "jax"
Provides-Extra: qiskit
Requires-Dist: qiskit[qasm3-import]>=1.2; extra == "qiskit"
Requires-Dist: sympy>=1.12; extra == "qiskit"
Provides-Extra: aer
Requires-Dist: qiskit[qasm3-import]>=1.2; extra == "aer"
Requires-Dist: qiskit-aer>=0.15; extra == "aer"
Requires-Dist: sympy>=1.12; extra == "aer"
Provides-Extra: gpu
Requires-Dist: torch>=2.4.1; (platform_system != "Darwin" or platform_machine != "x86_64") and extra == "gpu"
Requires-Dist: torch>=2.2; (platform_system == "Darwin" and platform_machine == "x86_64") and extra == "gpu"
Requires-Dist: numpy<2,>=1.26; (platform_system == "Darwin" and platform_machine == "x86_64") and extra == "gpu"
Requires-Dist: triton<4,>=3.4; (platform_system == "Linux" and platform_machine == "x86_64") and extra == "gpu"
Provides-Extra: qasm
Requires-Dist: qiskit[qasm3-import]>=1.2; extra == "qasm"
Requires-Dist: openqasm3[parser]>=1.0; extra == "qasm"
Requires-Dist: sympy>=1.12; extra == "qasm"
Provides-Extra: flax
Requires-Dist: jax>=0.4.30; extra == "flax"
Requires-Dist: flax>=0.10; extra == "flax"
Requires-Dist: optax>=0.2; extra == "flax"
Provides-Extra: symbolic
Requires-Dist: sympy>=1.12; extra == "symbolic"
Provides-Extra: compute
Requires-Dist: cotengra<0.8,>=0.7.5; (python_version < "3.11" or (platform_system == "Darwin" and platform_machine == "x86_64")) and extra == "compute"
Requires-Dist: autoray<0.8,>=0.7.2; (python_version < "3.11" or (platform_system == "Darwin" and platform_machine == "x86_64")) and extra == "compute"
Requires-Dist: cotengra>=0.8.3; (python_version >= "3.11" and (platform_system != "Darwin" or platform_machine != "x86_64")) and extra == "compute"
Requires-Dist: autoray>=0.8.4; (python_version >= "3.11" and (platform_system != "Darwin" or platform_machine != "x86_64")) and extra == "compute"
Provides-Extra: pennylane
Requires-Dist: pennylane>=0.40; extra == "pennylane"
Requires-Dist: sympy>=1.12; extra == "pennylane"
Provides-Extra: cirq
Requires-Dist: cirq-core>=1.4; extra == "cirq"
Requires-Dist: sympy>=1.12; extra == "cirq"
Provides-Extra: all
Requires-Dist: torch>=2.4.1; (platform_system != "Darwin" or platform_machine != "x86_64") and extra == "all"
Requires-Dist: torch>=2.2; (platform_system == "Darwin" and platform_machine == "x86_64") and extra == "all"
Requires-Dist: numpy<2,>=1.26; (platform_system == "Darwin" and platform_machine == "x86_64") and extra == "all"
Requires-Dist: jax>=0.4.30; extra == "all"
Requires-Dist: flax>=0.10; extra == "all"
Requires-Dist: optax>=0.2; extra == "all"
Requires-Dist: qiskit[qasm3-import]>=1.2; extra == "all"
Requires-Dist: qiskit-aer>=0.15; extra == "all"
Requires-Dist: pennylane>=0.40; extra == "all"
Requires-Dist: cirq-core>=1.4; extra == "all"
Requires-Dist: openqasm3[parser]>=1.0; extra == "all"
Requires-Dist: sympy>=1.12; extra == "all"
Requires-Dist: cotengra<0.8,>=0.7.5; (python_version < "3.11" or (platform_system == "Darwin" and platform_machine == "x86_64")) and extra == "all"
Requires-Dist: autoray<0.8,>=0.7.2; (python_version < "3.11" or (platform_system == "Darwin" and platform_machine == "x86_64")) and extra == "all"
Requires-Dist: cotengra>=0.8.3; (python_version >= "3.11" and (platform_system != "Darwin" or platform_machine != "x86_64")) and extra == "all"
Requires-Dist: autoray>=0.8.4; (python_version >= "3.11" and (platform_system != "Darwin" or platform_machine != "x86_64")) and extra == "all"
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Requires-Dist: ruff>=0.11; extra == "dev"
Requires-Dist: build>=1.2; extra == "dev"
Requires-Dist: twine>=6; extra == "dev"
Dynamic: license-file

# OpenQML

OpenQML is a Python library for building quantum circuits, using them in PyTorch
and JAX models, and solving portfolio allocation and risk problems.

## Install

OpenQML requires Python 3.10 or later.

```sh
python -m pip install openqml
```

```python
import openqml as oq
```

The core package includes CPU simulation and OpenQASM import and export.
Install `openqml[torch]`, `openqml[jax]`, or `openqml[flax]` for training. Add
`openqml[qiskit]`, `openqml[cirq]`, or `openqml[pennylane]` to work with objects
from those SDKs. On Linux x86-64, `openqml[gpu]` adds CUDA execution with Triton.

## What you can do

- Build circuits with `oq.Circuit`, measure them with `oq.sample`, or calculate
  Pauli expectation values with `oq.expectation`. Use `oq.convert` to move
  circuits between supported formats. [Circuit conversion](https://github.com/OpenQML-org/OpenQML/blob/main/docs/interoperability.md)
- Fit a model with `oq.Model` or use an OpenQML layer in your own training loop.
  [Training](https://github.com/OpenQML-org/OpenQML/blob/main/docs/hybrid-training.md) · [Model architectures](https://github.com/OpenQML-org/OpenQML/blob/main/docs/models.md)
- Use `oq.finance` for portfolio allocation, scenario risk, and option pricing.
  [Finance API](https://github.com/OpenQML-org/OpenQML/blob/main/docs/finance.md)

[API reference](https://github.com/OpenQML-org/OpenQML/blob/main/docs/api.md) · [Backends and platform support](https://github.com/OpenQML-org/OpenQML/blob/main/docs/runtime.md) ·
[Changelog](https://github.com/OpenQML-org/OpenQML/blob/main/CHANGELOG.md) · [Contributing](https://github.com/OpenQML-org/OpenQML/blob/main/CONTRIBUTING.md) · [Apache-2.0](https://github.com/OpenQML-org/OpenQML/blob/main/LICENSE)
