Quantum Algorithms for Lattice Boltzmann Methods.
Project description
qlbm
qlbm is a package for the development, simulation, and analysis of Quantum Lattice Boltzmann Methods.
qlbm is a rapidly evolving, research-oriented piece of software. It contains building blocks for constructing quantum circuits for quantum LBMs and connects these with quantum software infrastructure. qlbm is built with end-to-end development environment in mind, including:
- Parsing human-readable
JSONspecifications for QLBMs - Constructing quantum circuits in Qiskit that implement QLBMs
- Compiling quantum circuits to quantum computer and simulator platforms with Qiskit and Pytket
- Simulating quantum circuits on classical hardware with Qiskit and Qulacs
- Visualizing results in Paraview
- Analyzing the properties , scalability, and performance of quantum algorithms
PyPI installation
qlbm can be installed through pip. We recommend the use of a Python 3.12 or 3.13 virtual environment:
python -m venv qlbm-cpu-venv
pip install --upgrade pip
pip install qlbm
Local installation
Alternatively, you can also install the latest version of qlbm by cloning the repository and installing from source as follows (again using Python 3.12 or 3.13):
git clone git@github.com:QCFD-Lab/qlbm.git
cd qlbm
python -m venv qlbm-cpu-venv
source qlbm-cpu-venv/bin/activate
pip install --upgrade pip
pip install -e .[cpu,dev,docs]
We also provide a make script for this purpose, which will create the environment from scratch:
make install-cpu
source qlbm-cpu-venv/bin/activate
qlbm additionally supports several other options, including GPU and MPI simulation. There are also Docker container images in the Docker directory. Due to how quickly the code base is evolving, we recommend using the CPU option for stability purposes.
Algorithms and Usage
Currently, qlbm supports two algorithms:
- The Collisionless QLBM described in Efficient and fail-safe quantum algorithm for the transport equation (arXiv:2211.14269) by M.A. Schalkers and M. Möller.
- The Space-Time QLBM described in On the importance of data encoding in quantum Boltzmann methods by M.A. Schalkers and M. Möller.
The demos directory contains several use cases for simulating and analyzing these algorithms. Each demo requires minimal setup once the virtual environment has been configured. Consult the README.md file in the demos directory for further details.
Note on visualization: we rely on Paraview for visualizing the flow field of the simulation. You can install Paraview from this link.
Configuration
qlbm uses quantum circuits to simulate systems that users can specify in simple JSON configuration files. For instance, the following configuration describes a 2D system of 64x32 gridpoints, 4 discrete velocities per dimension, and with 3 solid objects placed in the fluid domain:
{
"lattice": {
"dim": {
"x": 64,
"y": 32
},
"velocities": {
"x": 4,
"y": 4
}
},
"geometry": [
{
"shape": "cuboid",
"x": [18, 20],
"y": [6, 25],
"boundary": "specular"
},
{
"shape": "cuboid",
"x": [23, 25],
"y": [3, 17],
"boundary": "bounceback"
},
{
"shape": "cuboid",
"x": [28, 29],
"y": [16, 29],
"boundary": "specular"
}
]
}
Citation
A preprint describing qlbm in detail is currently available on arXiv. If you use qlbm, you can cite it as per the CITATION.bib file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qlbm-0.0.5.tar.gz.
File metadata
- Download URL: qlbm-0.0.5.tar.gz
- Upload date:
- Size: 84.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca54da1cafd361b48f4f9263fc3426a3142d6ef069a96908f8b1d9c86150c908
|
|
| MD5 |
e7b7cbaa5dc9349cfdd1547ba8cfb11d
|
|
| BLAKE2b-256 |
23240a69b1c3e4f0dc1944168c850c4362d381a734aaf24c4c45bdb583114887
|
Provenance
The following attestation bundles were made for qlbm-0.0.5.tar.gz:
Publisher:
release.yml on QCFD-Lab/qlbm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qlbm-0.0.5.tar.gz -
Subject digest:
ca54da1cafd361b48f4f9263fc3426a3142d6ef069a96908f8b1d9c86150c908 - Sigstore transparency entry: 187122135
- Sigstore integration time:
-
Permalink:
QCFD-Lab/qlbm@91906efd4bb1e2cd806933f2791a1f99fc718a2e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/QCFD-Lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@91906efd4bb1e2cd806933f2791a1f99fc718a2e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file qlbm-0.0.5-py3-none-any.whl.
File metadata
- Download URL: qlbm-0.0.5-py3-none-any.whl
- Upload date:
- Size: 120.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
452ccf44441b89ed74d7a40ef9216201072dacd2feed3403170f31eefbc0af7b
|
|
| MD5 |
79f1cdb39d5db286c3f7b83fc7db91e8
|
|
| BLAKE2b-256 |
4cf301daff58bdcbbc31574dec04423d28e37880ef4ef5f442571d768b2e05fd
|
Provenance
The following attestation bundles were made for qlbm-0.0.5-py3-none-any.whl:
Publisher:
release.yml on QCFD-Lab/qlbm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qlbm-0.0.5-py3-none-any.whl -
Subject digest:
452ccf44441b89ed74d7a40ef9216201072dacd2feed3403170f31eefbc0af7b - Sigstore transparency entry: 187122136
- Sigstore integration time:
-
Permalink:
QCFD-Lab/qlbm@91906efd4bb1e2cd806933f2791a1f99fc718a2e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/QCFD-Lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@91906efd4bb1e2cd806933f2791a1f99fc718a2e -
Trigger Event:
workflow_dispatch
-
Statement type: