Metadata-Version: 2.1
Name: quantum-simulation-recipe
Version: 0.1.0
Summary: Recipe for quantum simulation
Home-page: https://github.com/Jue-Xu/quantum-simulation-recipe
Author-email: xujue@connect.hku.hk
License: Apache-2.0
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: jax ==0.4.12
Requires-Dist: qiskit >=1.0.2
Requires-Dist: openfermion >=1.5.1
Requires-Dist: openfermionpyscf >=0.5
Requires-Dist: matplotlib >=3.8.2
Requires-Dist: scipy >=1.12.0
Requires-Dist: numpy >=1.23.5
Requires-Dist: pandas >=2.2.2

# Quantum Simulation Recipes
<!-- ![Figure](./figs/idea.png) -->
[![License](https://img.shields.io/github/license/qiskit-community/qiskit-algorithms.svg?style=popout-square)](https://opensource.org/licenses/Apache-2.0)

This [python package](https://pypi.org/project/quantum-simulation-recipe/) contains ingredients for quantum simulation, such as the Hamiltonians and algorithmic primitives, mainly build on [qiskit](https://www.ibm.com/quantum/qiskit), [openfermion](https://github.com/quantumlib/OpenFermion).

##  Install
```bash
conda create --name qs python=3.10 
pip install quantum-simulation-recipe
```

## Usage
```python
import quantum_simulation_recipe as qsr
from quantum_simulation_recipe import spin_ham

H = spin_ham.Nearest_Neighbour_1d(4)
H.ham
```
More details
https://github.com/Jue-Xu/Quantum-Simulation-Recipe/tree/main/tests/test.ipynb

## Content
### Common Hamiltonians
- Spin Lattice: nearest-neighbor, power-law, IQP
- Fermion: chemical molecule, SYK
- Boson: Hubbard
- Field: lattice gauge
- open system [todo]

### States
- entangled state: GHZ, W state
- random state (Haar random, one-design)

### Operator
- random Pauli strings
- OTOC

### Channels
- noise channel (depolarize, dephase)

### Measures 
- norm: operator, trace distance, fidelity ...
- error bound
- overlap, entanglement, entropy

### Algorithmic primitives
- Trotter-Suzuki (product formula)
- LCU
- QSP
- ITE

