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
Python 3.5+ , qiskit , matplot and numpy. Installing Qiskit with visualization can be done using pip
pip install qiskit[visualization]
Use runner.py to run the program and generate result.
There are 3 options for the image which can be selected from the Utils.py class:-
- To select cat image call - util.get_Cat_image()
- To select MNIST Image call - util.get_MNIST_data()
- To select python generated image call - util.generate_image()
- To rotate the image uncomment below line in runner.py
qed.quantum_rotate_image(qc)
- To generate edge detection uncomment below line in runner.py
qed.quantum_edge_detection()
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 will be generated in the form of 'Result.png' and saved in the main folder.