Giter Club home page Giter Club logo

entanglement_simulation's Introduction

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 - [email protected]

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)

entanglement_simulation's People

Contributors

als15204 avatar rwu-iris avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.