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.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qibochem-0.0.5.tar.gz | 31.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qibochem-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 71.4 kB
Release files / qibochem-0.0.5.tar.gz
| Download URL | qibochem-0.0.5.tar.gz |
|---|---|
| Size | 31.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
155b29df6a92afa1a223a98b561bfabb934d054c7ff2e5a628701580b10451fe
|
|
BLAKE2b-256 checksum How to use checksums |
a5117178cd95fde6866a191cded7e3031db8ad2ea9b8923065505d79fcea7572
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / qibochem-0.0.5-py3-none-any.whl
| Download URL | qibochem-0.0.5-py3-none-any.whl |
|---|---|
| Size | 39.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6266f186203263320fb0492a0bc06ca1e2cee6af079155fb055fa25d31b638af
|
|
BLAKE2b-256 checksum How to use checksums |
3c2f33d5c395d414e8ad66f81888712a3d567b7869aa88526f8b556ab571d132
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|