Giter VIP home page Giter VIP logo

p-vqd's Introduction

Projected - Variational Quantum Dynamics (p-VQD)

GitHub release (latest SemVer including pre-releases) DOI

This repository contains the source code of the p-VQD algorithm to reproduce the results of the paper "An efficient quantum algorithm for the time evolution of parameterized circuits" (https://arxiv.org/abs/2101.04579).

At the moment, the Qiskit version required is

qiskit 0.25.0
qiskit-aer 0.8.0
qiskit-aqua 0.9.0
qiskit-finance 0.1.0
qiskit-ibmq-provider 0.12.2
qiskit-ignis 0.6.0
qiskit-machine-learning 0.1.0
qiskit-nature 0.1.0
qiskit-optimization 0.1.0
qiskit-terra 0.17.0

Content of the repository

  • pVQD.py : contains the actual class of the pVQD algorithm , with methods to evaluate the overlap, the gradient, the observables and run
  • pauli_function.py : contains functions to prepare Pauli operators and Hamiltonians for different physical systems. In this case, we create the Transverse Field Ising Model
  • ansatze.py : a file to contain the functions that return quantum circuit ansatze, in the future it will be updated with new ansatze
  • example.py : an example to use the pVQD to simulate the Transverse Field Ising Model on an open chain of 3 qubits
  • plotter.py : simple script to plot the results of the pVQD calculations and compare them to the exact classical simulation
  • data : a folder that contains some pre-produced data to plot

Updates

  • Update 1 : the code has been updated to run with Qiskit 0.25.0, and uses new functions that have been introduced with it, like the PauliSumOp operator. Moreover, it creates the circuit only once in order to speed up calculations. Finally, the local cost function alternative proposed by Cerezo et al. (https://www.nature.com/articles/s41467-021-21728-w) has been introduced as a possibility.

p-vqd's People

Contributors

stefanobarison 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.