Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Latest commit

 

History

History
37 lines (20 loc) · 1.04 KB

README.md

File metadata and controls

37 lines (20 loc) · 1.04 KB

QUANTUM MEAN FILTER USING CLASSIQ

Running on Device

!pip install -U classiq

Calling Method

sample_image=ImageToArray().getImage("...path",n=2)

meanfilter=ImageToCircuit(sample_image,2)

meanfilter.authenticate() #should authenticate if your device is not authenticate otherwise ignore this step

meanfilter.encodeToEneqr()

meanfilter.apply_filter()

meanfilter.showCircuit()

NEQR and ENEQR of 2 x 2 Image

![image](https://github.com/Risav25Pokhrel/Quantum-Mean-Filter/assets/103576193/f48fa04d-4783-46e9-98cd-42320b662969)

Cyclic shift and Copy Results

![image](https://github.com/Risav25Pokhrel/Quantum-Mean-Filter/assets/103576193/e3886f27-3ed7-45d2-bfa6-3882196e26e8)

Final Image of Mean Filter

![image](https://github.com/Risav25Pokhrel/Quantum-Mean-Filter/assets/103576193/74c5087e-983c-4d0b-abdf-5074e0e0a987)

TODO: Applying mean filter for GQIR image representation for any size image Implementation of the Quantum Non-Modular Floating Point Division Normalization and Filtering of output