Coder Social home page Coder Social logo

plaquette-models's Introduction

Plaquette models

This repo contains code and jupyter notebooks that can be used to reconstruct the results presented in Real-time dynamics of Plaquette Models using NISQ Hardware.

The repo is organized in such a way that the python modules are all part of the src module, while notebooks includes the jupyter notebooks with examples on how to use the different modules. Be aware that this is written so that experiments reported in the paper can be reproduced, but it is not a package with all the required validation, error handling, etc., so going much beyond the examples presented in the notebooks might require modifying the python code in src.

Pre-requisites

  • IBM Quantum account (free version provides access to various hardware that can be used to reproduce these experiments).

Follow the instructions in IBM account to create an account or login to it.

  • Obtain your personal token to access the IBMQ systems.

Installation

It is recommended to use a python environment to run this code. Any of the traditional virtual environment management tools such as virtualenv, pipenv, etc. would work, but here we assume virtualenv is used.

After activating a virtual environment, install all necessary third party packages using:

pip install -r requirement.txt

The notebooks assume credentials are stored in the system, so before running any of them, make sure the following command is run within a python session:

from qiskit import IBMQ

IBMQ.save_acount(token)

This needs the token obtained from IBM and linked to your account.

Once the token is stored, the notebooks use the command:

from qiskit import IBMQ

IBMQ.load_account()

To obtain access to the quantum systems.

Running the notebooks

Two notebooks are included in the notebooks directory:

  1. circuits: includes examples showing how to generate and visualize the basic circuits used in the paper.
  2. experiments: includes examples on how to run the experiments, generate the results (in the form of dataframes) and generate some of the plots presented in the paper. Be aware that plotting functionality is very limited to specific results, so you would probably need to create your own plotting methods to obtain specific results.

Modules structure

Modules in the src directory are organized in the following way:

  • analysis: includes code to process the experiment's results, including readout error mitigation and zero-noise extrapolation.
  • models: includes code to build the circuits used in the experiments.
  • observables: includes code to compute the gauss law observables.
  • plotting: includes code to plot results from the experiments.

plaquette-models's People

Contributors

mgarciav88 avatar dependabot[bot] 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.