Git Product home page Git Product logo

quantum-computing's Introduction

Quantum-Computing

Quantum Computing has paved its path from being a theory to physical read-to-use machines. This project reflects on the implmentation of Quantum image processing with FRQI image model in Qiskit

Getting Started

Prerequisites

Python 3.5+ , qiskit , matplot and numpy. Installing Qiskit with visualization can be done using pip

pip install qiskit[visualization]

Running the program and seeing the result

Use runner.py to run the program and generate result.

Selecting images to check

There are 3 options for the image which can be selected from the Utils.py class:-

  1. To select cat image call - util.get_Cat_image()
  2. To select MNIST Image call - util.get_MNIST_data()
  3. To select python generated image call - util.generate_image()

Image transformation

  1. To rotate the image uncomment below line in runner.py
qed.quantum_rotate_image(qc)
  1. To generate edge detection uncomment below line in runner.py
qed.quantum_edge_detection()

Running the noise model

To add moise model to the simulation uncomment below lines from the runner.py class

backend = provider.get_backend('ibmq_16_melbourne')
noise_model = NoiseModel.from_backend(backend)
coupling_map = backend.configuration().coupling_map
basis_gates = noise_model.basis_gates
result = execute(qc, Aer.get_backend('qasm_simulator'), shots=numOfShots,coupling_map=coupling_map,
                 basis_gates=basis_gates,
                 noise_model=noise_model).result()

Result

Result will be generated in the form of 'Result.png' and saved in the main folder.

quantum-computing's People

Contributors

paritoshkc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

quantum-computing's Issues

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.