Code Monkey home page Code Monkey logo

kuantum's Introduction

Kuantum

QHack 2024

Steps to get the ground state energy estimation (as given in .src/samplecode.py):

  1. Install the packages mentioned in the project file.
  2. Modify the parameters in the input file given in the inputs folder.
  3. Add a path to a pickle file which stores (hamiltonian: qml.Hamiltonian, state: vector) in the input file under 'hamiltonian':file
  4. Read the input file from the correct path in samplecode.py
  5. [Optional] : Add a plot_path which is a .png file to save a plot of the estimate of the CDF function.
  6. [Optional] : Add a save_path which is a .pkl file to save the output which is a dictionary with relevant entries: a. 'ground state' which is the estimate of the ground state energy b. 'k_list' : the k-values sampled throughout the algorithm c. 'r_list' and 's_list': the real and imaginary values of expectation value of the time-evolution unitary taken from the sampled shots from the cosntructed circuits. d. 'norm_k' : normalization factor
  7. If you want to reconstruct the CDF estimate, just use binarysearch.acdf(r_list, s_list, k_list, norm_k)

kuantum's People

Contributors

anjishnubose avatar asymptoticgains avatar

Watchers

 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.