GithubHelp home page GithubHelp logo

low_depth_ghz_state_generator's Introduction

GHZ state quantum circuit with low depth

unitary tests codecov black

License

GNU GPL v.3.0

Description

A repository about GHZ state preparation with low depth quantum circuits. In the NISQ device era, one way to improve the results obtained in a experiment on a quantum computer, is to reduce the number of qubits, the number of gates and the circuit depth, because these points can increase the chance of occurence of a quantum error. Combining these reductions on the number of qubits, the number of gates and circuit depth, with error mitigation techniques and good usage of devices coupling map layout, we have an excellent setup to achieve very good results on a real device. Once entangled states, like GHZ state, are a fundamental resource on quantum computation (for instance: Quantum Teleportation, Superdense coding, QECC and others), having a way to prerare these states with high state fidelity is a key piece to achieve good results on some quantum algorithms and protocols, then is very important that quantum computing community spend some time trying to build and find some techniques that aim the reduction of number of qubits usage, the number of gates and the circuit depth.

How to use

  1. Clone the repository
git clone https://github.com/jvscursulim/low_depth_ghz_state_generator.git
  1. Create a virtual environment
python -m venv env
  1. Activate your virtual environment
  • Linux
source env/bin/activate
  • Windows
cd env/Scripts
call activate
  1. Install pipenv and the necessary packages
pip install pipenv
pipenv install

Code snippet

from qiskit_aer import AerSimulator

from ghz_state_preparator import create_ghz_state_quantum_circuit

qc = create_ghz_state_quantum_circuit(num_qubits=num_qubits, add_measurements=True)
counts = backend.run(qc, shots=shots).result().get_counts()

Figures

Example: 20 qubits GHZ state

  • Standard circuit image

  • Low depth circuit image

  • Scaling comparison image

References

  1. Greenberger-Horne-Zeilinger state
  2. Entanglement and GHZ states
  3. Circuit depth

low_depth_ghz_state_generator's People

Contributors

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