Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/susyustc/stabilizer_gs
Implementations and demonstrations for stabilizer ground states
https://github.com/susyustc/stabilizer_gs
quantum-chemistry quantum-computing
Last synced: 2 months ago
JSON representation
Implementations and demonstrations for stabilizer ground states
- Host: GitHub
- URL: https://github.com/susyustc/stabilizer_gs
- Owner: SUSYUSTC
- License: apache-2.0
- Created: 2024-03-14T02:20:13.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-07-17T20:42:58.000Z (5 months ago)
- Last Synced: 2024-07-18T00:55:17.319Z (5 months ago)
- Topics: quantum-chemistry, quantum-computing
- Language: C++
- Homepage: https://arxiv.org/abs/2403.08441
- Size: 45.9 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stabilizer-Ground-States
This is the GitHub repo for "Stabilizer ground states: theory, algorithms and applications" by Jiace Sun, Lixue Cheng, and Shi-Xin Zhang. [Paper Link](https://arxiv.org/abs/2403.08441)
## Usage
### python (for demonstration)
Three scripts are given for the exact stabilizer ground state of (1) general finite Hamiltonians, (2) 1D local finite Hamiltonians, (3) 1D local infinite periodic Hamiltonians.
```
cd py
python sparse.py path_to_lib/example/hamiltonian_finite.txt
python klocal_sparse.py path_to_lib/example/hamiltonian_finite.txt
python klocal_periodic.py path_to_lib/example/hamiltonian_periodic.txt
```
### C++ (for performance)
#### Installation
requirement: Eigen3 >= 3.4.0, G++ >= 9, Boost, OpenMP (for parallelism)
```
cd cpp
mkdir build
cd build
cmake ..
make
```
#### Run
```
./klocal_sparse path_to_lib/example/hamiltonian_finite.txt
./sparse path_to_lib/example/hamiltonian_finite.txt
```### Format of Hamiltonian
```
n k
w1 P1 sites1
w2 P2 sites2
...
```
n = number of qubits for finite Hamiltonians, or period for periodic Hamiltoniansk = locality of Hamiltonian (i.e. each Pauli must be in site m to m + k - 1 for some m)
See details in [example](example)
## Cite us
```
@article{sun2024stabilizer,
title={Stabilizer ground states: theory, algorithms and applications},
author={Sun, Jiace and Cheng, Lixue and Zhang, Shi-Xin},
journal={arXiv preprint arXiv:2403.08441},
year={2024}
}
```