qphase-sde
SDE Solver for QPhase
qphase-sde is a numerical library for solving Stochastic Differential Equations (SDEs), primarily focused on quantum optics applications. It implements common integration schemes and supports multiple computation backends.
Features
- Integrators:
- Euler-Maruyama: Basic first-order strong approximation.
- Milstein: Higher-order scheme for multiplicative noise.
- SRK: Stochastic Runge-Kutta methods.
- Backends:
- NumPy: Standard implementation.
- Numba: JIT-compiled for better CPU performance.
- PyTorch/CuPy: Support for GPU acceleration.
- Model Definition:
- Define custom Hamiltonians and Dissipators via
SDEModel. - Supports additive and multiplicative noise.
- Define custom Hamiltonians and Dissipators via
Installation
pip install qphase-sde
Usage
As a QPhase Plugin
When installed with qphase, you can define sde jobs in your configuration file:
jobs:
- name: "my_simulation"
type: "sde"
config:
t1: 100.0
dt: 1e-3
trajectories: 1000
model: "models/my_model.py"
Standalone Usage
You can also use the library directly in your Python scripts:
from qphase_sde.engine import Engine, EngineConfig
from qphase_sde.model import SDEModel
# Define model and config
config = EngineConfig(dt=1e-3, t1=10.0)
engine = Engine(config)
# Run simulation
result = engine.run(my_model)
License
MIT License
Metadata
Release files for qphase-sde 1.0.0
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 |
|---|---|---|---|---|
| qphase_sde-1.0.0.tar.gz | 23.7 kB | Without provenance | Details for qphase_sde-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qphase_sde-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for qphase_sde-1.0.0-py3-none-any.whl |
Total release size: 53.5 kB
Release files / qphase_sde-1.0.0.tar.gz
| Download URL | qphase_sde-1.0.0.tar.gz |
|---|---|
| Size | 23.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0be042b62e7bfdaffaac1adefc8c4ad8109c96abc6eaae2a0376d9de7bf4bbca
|
|
BLAKE2b-256 checksum How to use checksums |
8370bcd34aca68fbd41e7569888e0e148d4dfc43a691465b538dc3d798d8c8c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / qphase_sde-1.0.0-py3-none-any.whl
| Download URL | qphase_sde-1.0.0-py3-none-any.whl |
|---|---|
| Size | 29.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52408b22b95ca378c97af58ff3eb0239cd9572e3c1555271c00e3b41768787bc
|
|
BLAKE2b-256 checksum How to use checksums |
bfdc36f1d4a73ac62802a015680cfe16b1a5a77b1d88c6e863f25b2983843b13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for qphase-sde 1.0.0
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.