Giter VIP home page Giter VIP logo

qosf-mentorship-program-screening-tasks's Introduction

QOSF-Mentorship-Program-Screening-Tasks

Task 3 ZNE

Zero-noise extrapolation (ZNE) is a noise mitigation technique. It works by intentionally scaling the noise of a quantum circuit to then extrapolate the zero-noise limit of an observable of interest. In this task, you 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, polynomial, and exponential.
  5. Compare mitigated and unmitigated results
  6. Bonus: Run your ZNE function in real quantum hardware through the IBM Quantum Service

Check the Mitiq documentation for references. You are not allowed to use the functions from Mitiq or any other frameworks where ZNE is already implemented.

Usage

Getting Started

To get started with this repository, follow these steps:

1. Clone this Repository

Clone this repository to your local machine using the following command:

git clone https://github.com/awshaffar/QOSF-Mentorship-Program-Screening-Tasks.git

2. Install dependencies:

Before running the code, ensure that you have Python and pip installed on your system. This project supports Python 3.7 and above. You can download and install Python from the Python and pip installed on your system before proceeding with the installation.

Next, navigate to the cloned repository directory:

cd QOSF-Mentorship-Program-Screening-Tasks

Install the required dependencies by running:

pip install -r requirements.txt

This command will install all necessary Python packages specified in the requirements.txt file, including libraries for quantum computing and data analysis.

If you prefer using a virtual environment, you can create and activate one before installing dependencies:

python -m venv venv     # Create a virtual environment
source venv/bin/activate  # Activate the virtual environment on macOS/Linux
.\venv\Scripts\activate   # Activate the virtual environment on Windows

Once the virtual environment is activated, you can proceed to install the dependencies using the pip install -r requirements.txt command as mentioned above.

qosf-mentorship-program-screening-tasks's People

Contributors

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