SymQNet Molecular Optimization via Hamiltonian Estimation
Project description
SymQNet-MolOpt: Hamiltonian Parameter Estimation
SymQNet-MolOpt provides efficient, uncertainty-aware estimation of Hamiltonian parameters for spin-system models and ultimately much more efficient molecular optimization. It is designed for sample-efficient optimization and reports confidence intervals for each parameter.
Installation
pip install SymQNet-MolOpt
Usage
Core Command
SymQNet-MolOpt --hamiltonian input.json --output results.json
Arguments:
--hamiltonian: Path to a JSON Hamiltonian (OpenFermion-like format).--output: File to save results (JSON).--shots: Number of measurement shots (default auto-scales).--n-rollouts: Number of independent rollouts (default: 5).--max-steps: Max optimization steps per rollout (default: 50).
Examples
Water Molecule (H₂O, 10 qubits)
SymQNet-MolOpt --hamiltonian examples/H2O_10q.json --output h2o_results.json --shots 1024 --n-rollouts 5 --max-steps 50
Ising Chain (12 qubits)
SymQNet-MolOpt --hamiltonian examples/ising_12q.json --output ising_results.json --shots 1024
(You need to create your own JSON Hamiltonian.)
Input Format
Hamiltonians are specified in JSON:
{
"format": "openfermion",
"system": "H2O",
"n_qubits": 10,
"pauli_terms": [
{"coefficient": -74.943, "pauli_string": "IIIIIIIIII"},
{"coefficient": 0.342, "pauli_string": "IIIIIIIIIZ"}
]
}
Output Format
Results include estimated parameters with uncertainties:
{
"symqnet_results": {
"coupling_parameters": [
{
"index": 0,
"mean": 0.2134,
"confidence_interval": [0.2089, 0.2179],
"uncertainty": 0.0045
}
],
"field_parameters": [...],
"total_uncertainty": 0.0856
},
"hamiltonian_info": {
"system": "H2O",
"n_qubits": 10
}
}
Requirements
- Python 3.8+
- PyTorch 1.12+
- NumPy, SciPy, Click
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 symqnet_molopt-3.0.21.tar.gz.
File metadata
- Download URL: symqnet_molopt-3.0.21.tar.gz
- Upload date:
- Size: 2.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4773b48be719cca96df3a3ecaa272617df4f53d49397176fc35a2273db86c730
|
|
| MD5 |
354ee7d099885e2af7586645e096a11d
|
|
| BLAKE2b-256 |
c003458ef72cff49a5eb4f1f5961be801bdfbc1ac668f10232efe151f9844149
|
File details
Details for the file symqnet_molopt-3.0.21-py3-none-any.whl.
File metadata
- Download URL: symqnet_molopt-3.0.21-py3-none-any.whl
- Upload date:
- Size: 2.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53b084106a466587d6fd123c97be729ef67917b2431657b33be2896599701c8f
|
|
| MD5 |
175aad0b3c96126b0ba7900aac35791c
|
|
| BLAKE2b-256 |
137b9746a016e2f0d9c0ec43285bbec4825d69c168e43f7ab51fc711fc70519b
|