quanti-gin
A customizable data generator for quantum simulation. Using this library, you can easily create larger sets of simulations and output data for optimizing molecule ground state. Per default, we are using Tequila as a quantum backend.
Get started with the tutorial
Installation
To install quanti-gin run pip install quanti-gin.
quanti-gin also needs the devel branch of sunrise, which is not on PyPI yet:
pip install "project-sunrise @ git+https://github.com/tequilahub/sunrise.git@devel"
Usage
For a basic data generation job use:
python -m quanti_gin 4 100
The basic format of the command line is:
python -m quanti_gin <number_of_atoms> <number_of_jobs>
If you want to learn about more parameters you can use help:
python -m quanti_gin -h
Customize the data generator
quanti-gin is designed so it can be easily customized with your heuristics for data generation.
You can create your own version by simply subclassing the quanti_gin.DataGenerator class.
A full example of this can be found in examples/customized_generator.py.
You can run the example code by executing:
python -m quanti_gin.examples.customized_generator
Documentation and Visualization notebook
For a more detailed introduction and background, please take a look at the Summary.
Additionally, for more details on how to interpret and evaluate the generated data, take a look at the Visualization notebook.
Methods in sunrise and reference datasets
The SPA graph heuristics (formerly quanti_gin.shared, quanti_gin.ant_colony_optimization and the methods of
spa_best_n_solutions/adapted_heuristics.py) and DataGenerator.run_spa_optimization /
generate_initial_guess_from_edges moved to sunrise as
sunrise.graph_selection, with the same names and signatures.
The SPA angle read-out (formerly quanti_gin.spa_solve) is now sunrise.spafastprototype.spa_classical_solver
(spa_angles_for_graph, hcb_model, spa_solve_graph), where hcb_model takes the molecule and
spa_angles_for_graph returns the angles as tequila variables.
Reference energies that are expensive to compute (HF, FCI and CCSD(T) in STO-3G) for predefined geometries (random, linear and ring hydrogen clusters H4-H10, alkanes, small molecules) are stored in quanti_gin/data:
from quanti_gin.shared import list_datasets, load_dataset
print(list_datasets())
data = load_dataset("h6_chain") # columns: id, parameter, geometry, hf, fci
Metadata
Release files for quanti-gin 3.0.1
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 |
|---|---|---|---|---|
| quanti_gin-3.0.1.tar.gz | 53.0 kB | Without provenance | Details for quanti_gin-3.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quanti_gin-3.0.1-py3-none-any.whl | Python 3 | none | any | Details for quanti_gin-3.0.1-py3-none-any.whl |
Total release size: 113.2 kB
Release files / quanti_gin-3.0.1.tar.gz
| Download URL | quanti_gin-3.0.1.tar.gz |
|---|---|
| Size | 53.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c11bd24f3a4fbe1d7d62349a2e577961deb8cf9956c1b995c3b0a5050909abe
|
|
BLAKE2b-256 checksum How to use checksums |
4ae3a5db1013547c995975acc93abdc767b1e35898622667a758e657688da273
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / quanti_gin-3.0.1-py3-none-any.whl
| Download URL | quanti_gin-3.0.1-py3-none-any.whl |
|---|---|
| Size | 60.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f53d5c885bbbef549a8a505d998b6d69d1963949fe1c2874b267ef2d3e767a87
|
|
BLAKE2b-256 checksum How to use checksums |
f4a7ccafa5fef480892af5f3aba7f6d4cc4924cab28b60f1319dbdba2730acde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for quanti-gin 3.0.1
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.