Giter Site home page Giter Site logo

vqe's Introduction

Variational quantum eigensolver

In the paper "Scalable quantum simulation of molecular energies" [1] they report that their VQE experiment achieves chemical accuracy and is the first scalable quantum simulation of molecular energies performed on universal quantum hardware.

This is the basic code to simulate molecular hydrogen implemented as described in paper [1] using ProjectQ [2], a framework for quantum computing. The code can be adapted (using a different main engine and changing some gates) such that it can be run on the IBM-q. It can also be adapted with more qubits and other coefficients of the (transformed) second quantization such that further molecules can be simulated.

The resulting plot does not look like a pretty potential curve, because most likely the coefficients from the paper used for the vqe are wrong:

vqe plot

Prerequisits

install following libraries: scipy, (matplotlib), projectq

References

[1] P. J. J. O'Malley, R. Babbush, I. D. Kivlichan, J. Romero, J. R. McClean, R. Barends, J. Kelly, P. Roushan, A. Tranter, N. Ding, B. Campbell, Y. Chen, Z. Chen, B. Chiaro, A. Dunsworth, A. G. Fowler, E. Je�rey, E. Lucero, A. Megrant, J. Y. Mutus, M. Neeley, C. Neill, C. Quintana, D. Sank, A. Vainsencher, J. Wenner, T. C. White, P. V. Coveney, P. J. Love, H. Neven, A. Aspuru-Guzik, and J. M. Martinis. Scalable quantum simulation of molecular energies. Phys. Rev. X, 6:031007, Jul 2016

[2] Thomas H�aner, Damian S. Steiger, Krysta M. Svore, and Matthias Troyer. Projectq: An open source software framework for quantum computing. 2016. http://projectq.ch/

TODO

  • correct coefficients
  • adapt code to run on IBM-q
  • make scalable and add further molecules coefficients

vqe's People

Contributors

ramonahohl avatar

Stargazers

Rugantio Costa avatar

Watchers

Tino Rellstab 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.