Giter Club home page Giter Club logo

qosf_task-3_zne's Introduction

QOSF_Task-3_ZNE

This is an implementation of Zero Noise Extrapolation as part of Task 3 of the Quantum Open Source Mentorship program. The code repository is divided into two parts. Firstly, utils.py contains the actual implementation of the mentioned task, the DepolarizingNoiseModel class and functions required for the application. It provides two ways to scale noise levels: through a dummy method to increase gate error rate and through unitary folding, which includes both circuit and gate level folding. Additionally, apply_folding_method is used for applying unitary folding (circuit and gate) to any arbitrary Qiskit circuit. Lastly, the class includes five extrapolation methods (linear, quadratic, polynomial, exponential, power), and it even supports execution on a quantum computer.

Secondly, QOSF_ZNE.ipynb contains my understanding of the topic, possible extensions of the idea, insights about the implementation, and the application of the implemented method.

  1. Description:

    • In this task, I will build a simple ZNE function from scratch:
      1. Build a simple noise model with depolarizing noise
      2. Create different circuits to test your noise models and choose the observable to measure
      3. Apply the unitary folding method.
      4. Apply the extrapolation method to get the zero-noise limit. Different extrapolation methods achieve different results, such as Linear, quadratic, polynomial, power, and exponential.
      5. Compare mitigated and unmitigated results
      6. Bonus: Run your ZNE function in real quantum hardware through the IBM Quantum Service (class enables this, but couldn't run because of long waiting time)
  2. Results:

    Screenshot from 2024-04-09 00-33-24

    Screenshot from 2024-04-09 00-33-42

    Screenshot from 2024-05-05 22-31-39

  3. References:

    1. Review of ZNE and improvements

    2. Mitiq

    3. Original ZNE paper

qosf_task-3_zne's People

Contributors

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