Qibochem
Qibochem is a plugin to Qibo for quantum chemistry simulations.
Some of the features of Qibochem are:
- General purpose
Moleculeclass- PySCF for calculating the molecular 1- and 2-electron integrals
- User defined orbital active space
- Unitary Coupled Cluster Ansatz
- Various Qibo backends (numpy, JIT, TN) for efficient simulation
Documentation
The Qibochem documentation can be found here
Minimum working example:
An example of building the UCCD ansatz with a H2 molecule
import numpy as np
from qibo.models import VQE
from qibochem.driver import Molecule
from qibochem.ansatz import hf_circuit, ucc_circuit
# Define the H2 molecule and obtain its 1-/2- electron integrals with PySCF
h2 = Molecule([('H', (0.0, 0.0, 0.0)), ('H', (0.0, 0.0, 0.7))])
h2.run_pyscf()
# Generate the molecular Hamiltonian
hamiltonian = h2.hamiltonian()
# Build a UCC circuit ansatz for running VQE
circuit = hf_circuit(h2.nso, h2.nelec)
circuit += ucc_circuit(h2.nso, [0, 1, 2, 3])
# Create and run the VQE, starting with random initial parameters
vqe = VQE(circuit, hamiltonian)
initial_parameters = np.random.uniform(0.0, 2*np.pi, 8)
best, params, extra = vqe.minimize(initial_parameters)
print(f"VQE result: {best:.10f}")
Citation policy
If you use the Qibochem plugin please refer to the documentation for citation instructions.
Contact
To get in touch with the community and the developers, consider joining the Qibo workspace on Matrix:
If you have a question about the project, contact us at 📫.
Contributing
Contributions, issues and feature requests are welcome.
Metadata
Release files for qibochem 0.0.6
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 |
|---|---|---|---|---|
| qibochem-0.0.6.tar.gz | 40.0 kB | Without provenance | Details for qibochem-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qibochem-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for qibochem-0.0.6-py3-none-any.whl |
Total release size: 85.0 kB
Release files / qibochem-0.0.6.tar.gz
| Download URL | qibochem-0.0.6.tar.gz |
|---|---|
| Size | 40.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5d880802507b04ab26a1b6d9c75033d0dde84a9984ace46b0a8cef884c2a771
|
|
BLAKE2b-256 checksum How to use checksums |
746d2376262c05af5e314b38cdf9ae621c58b83573b716bc8cb01bf01a5c623e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / qibochem-0.0.6-py3-none-any.whl
| Download URL | qibochem-0.0.6-py3-none-any.whl |
|---|---|
| Size | 45.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf68398945282ebd97029b90d57dd441c577744b38304a486abef5c429ee0ae1
|
|
BLAKE2b-256 checksum How to use checksums |
4f703a2e3db21ab6e7bf005c3854748bb04b835b0c2a8ed1f25f83f2b1fbd6f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for qibochem 0.0.6
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.