Skip to content

ALS15204/entanglement_simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Entanglement Forging simulation with water molecule

Simulate water ground state energy with entanglement forging in VQE

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. TODOs
  5. License
  6. Contact
  7. Acknowledgments

About The Project

This repository is prepared to reproduce the results discussed in the paper "Doubling the size of quantum simulators by entanglement forging" by Andrew Eddins et al.

The repository focuses on reproducing Fig 3b and 4b of the paper.

(back to top)

Getting Started

Follow the steps below to get set up the project

  1. Clone the repo
    git clone https://github.com/ALS15204/entanglement_simulation.git
  2. Set up venv wih Python 3.9
    python3.9 -m venv venv
    
  3. Activate venv
    source venv/bin/activate
    
  4. Update setuptools pip and wheel
    pip install -U pip setuptools wheel
    
  5. Install requirements
    pip install -e .
    

(back to top)

Usage

A demonstration of my experiment can be found in the python notebook [water_simulation_case_b.ipynb]. See conclusion in the notebook for a discussion on the limitation of the experiment.

To reproduce what has been discussed in the notebook, follow the steps below:

  1. Run the following command to produce simulated water molecule data.
    python3.9 -m entanglement_simulation.water_molecule
    This will create the [water_data_case_b.json]
  2. Run the following command to search the best results through hyperparameters.
    python3.9 -m entanglement_simulation.scripts.entanglement_forge
    This will prepare the experiment folder case_b_reduced_orbitals_0_3_k3
  3. Finally, run the following command to make plots.
    python3.9 -m entanglement_simulation.scripts.make_plots
    This will create the plots in the plots folder.

[NOTE] Out of curiosity, I have applied the best hyperparameters found in case b to case a and case c. The results are shown in the notebook:

(back to top)

TODOs

  • Add tests: due to time limitation, I did not add tests for this project. I will add tests in the future.

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Ronin Wu - @RoninWu - roninwu@gmail.com

Project Link: https://github.com/ALS15204/entanglement_simulation

(back to top)

Acknowledgments

  • I sincerely thank Dr. Andrew Eddins for giving a very comprehensive talk on his work. I learned a lot from his talk and the paper.
  • The implementation in this work has referenced the blogpost Try Out the Latest Advances in Quantum Computing With Prototypes. I sincerely thank the authors for providing comprehensive examples and tutorials.
  • Special thanks to my dear friend Dr. Valentin Stauber, who has provided me fruitful discussions and suggestions on this project.

(back to top)

About

This repo is prepared to reproduce results of the VQE calculation in https://arxiv.org/pdf/2104.10220.pdf

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published