-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed changes for Tangelo-Examples PR.
- Loading branch information
Showing
20 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
logger/ | ||
run.sh | ||
**/__pycache__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
# AUTOREGRESSIVE NEURAL QUANTUM STATES FOR QUANTUM CHEMISTRY | ||
|
||
This respository contains code jointly developed between the University of Michigan and SandboxAQ to implement the retentive network (RetNet) neural quantum states ansatz outlined in the paper, "Retentive Nueral Quantum States: Efficient Ansatze for Ab Initio Quantum Chemistry," by Oliver Knitter, Dan Zhao, James Stokes, Martin Ganahl, Stefan Leichenauer, and Shravan Veerapaneni. | ||
This repository contains code jointly developed between the University of Michigan and SandboxAQ to implement the retentive network (RetNet) neural quantum states ansatz outlined in the paper, "Retentive Neural Quantum States: Efficient Ansatze for Ab Initio Quantum Chemistry," by Oliver Knitter, Dan Zhao, James Stokes, Martin Ganahl, Stefan Leichenauer, and Shravan Veerapaneni. | ||
|
||
Preprint available on the arXiv: https://arxiv.org/abs/2411.03900 | ||
|
||
Corresponding Author: Oliver Knitter, [email protected] | ||
|
||
This repository is based off of the code Tianchen Zhao released (https://github.com/Ericolony/made-qchem) alongside the paper "Scalable neural quantum states architecture for quantum chemistry" (https://arxiv.org/abs/2208.05637). This new code uses neural quantum states (NQS), implemented in PyTorch to calculate electronic ground state energies for second quantized molecular Hamiltonians, which are calculated using PySCF and Tangelo (https://github.com/sandbox-quantum/Tangelo/). The RetNet ansatz implementation was made using the yet-another-retnet repository (https://github.com/fkodom/yet-another-retnet). Other ansatze available are the MADE and Transformer ansatze, which are implemented natively in PyTorch. The Hamiltonian expectation value estimates are calculated following the procedure outlined in Zhao et al.'s paper, but the modular structure of the code allows for relatively simple plug-and-play implementations of different models and Hamiltonian expectation estimate calculators. | ||
This repository is based off of the code Tianchen Zhao released (https://github.com/Ericolony/made-qchem) alongside the paper "Scalable neural quantum states architecture for quantum chemistry" (https://arxiv.org/abs/2208.05637). This new code uses neural quantum states (NQS), implemented in PyTorch to calculate electronic ground state energies for second quantized molecular Hamiltonians. Though not exactly a quantum or hybrid algorithm, this workflow makes use of Tangelo (https://github.com/sandbox-quantum/Tangelo/) and PySCF to calculate Jordan--Wigner encodings of the electronic Hamiltonians, along with some classical chemistry benchmark values. These uses of Tangelo are mainly found in the subdirectory src/data/. | ||
|
||
The RetNet ansatz implementation was made using the yet-another-retnet repository (https://github.com/fkodom/yet-another-retnet). Other ansatze available are the MADE and Transformer ansatze, which are implemented natively in PyTorch. The Hamiltonian expectation value estimates are calculated following the procedure outlined in Zhao et al.'s paper, but the modular structure of the code allows for relatively simple plug-and-play implementations of different models and Hamiltonian expectation estimate calculators. | ||
|
||
## Usage | ||
|
||
### 1. Environment Setup | ||
|
||
- The environment requirements are avaialable in the nqs-qchem.yml file. | ||
- The environment requirements are available in the nqs-qchem.yml file. | ||
|
||
- Make sure your operating system meets the requirements for PyTorch 2.5.1 and CUDA 11.8. | ||
|
||
|
Binary file removed
BIN
-144 Bytes
examples/neural_quantum_states/src/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file removed
BIN
-138 Bytes
examples/neural_quantum_states/src/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file removed
BIN
-1.77 KB
examples/neural_quantum_states/src/__pycache__/complex.cpython-312.pyc
Binary file not shown.
Binary file removed
BIN
-1.47 KB
examples/neural_quantum_states/src/__pycache__/complex.cpython-39.pyc
Binary file not shown.
Binary file removed
BIN
-1.16 KB
examples/neural_quantum_states/src/__pycache__/data_loader.cpython-312.pyc
Binary file not shown.
Binary file removed
BIN
-935 Bytes
examples/neural_quantum_states/src/__pycache__/data_loader.cpython-39.pyc
Binary file not shown.
Binary file removed
BIN
-2.17 KB
examples/neural_quantum_states/src/__pycache__/evaluate.cpython-39.pyc
Binary file not shown.
Binary file removed
BIN
-2.32 KB
examples/neural_quantum_states/src/__pycache__/helper.cpython-312.pyc
Binary file not shown.
Binary file removed
BIN
-1.26 KB
examples/neural_quantum_states/src/__pycache__/helper.cpython-39.pyc
Binary file not shown.
Binary file removed
BIN
-1.48 KB
examples/neural_quantum_states/src/__pycache__/optimizer.cpython-312.pyc
Binary file not shown.
Binary file removed
BIN
-970 Bytes
examples/neural_quantum_states/src/__pycache__/optimizer.cpython-39.pyc
Binary file not shown.
Binary file removed
BIN
-5.02 KB
examples/neural_quantum_states/src/__pycache__/scheduler.cpython-312.pyc
Binary file not shown.
Binary file removed
BIN
-9.36 KB
examples/neural_quantum_states/src/__pycache__/scheduler.cpython-39.pyc
Binary file not shown.
Binary file removed
BIN
-7.79 KB
examples/neural_quantum_states/src/__pycache__/train.cpython-39.pyc
Binary file not shown.
Binary file removed
BIN
-3.47 KB
examples/neural_quantum_states/src/__pycache__/util.cpython-312.pyc
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters