Obtaining the Negative of an Image Using Quantum Programming with Python/Qiskit
This study investigates the implementation of grayscale color inversion (negation), a fundamental image processing operation in digital images, using quantum computing principles. While the conversion of 8-bit grayscale (0–255) pixels to their opposite values is performed using a logical NOT operation in classical computing, this operation is modeled in quantum computing using a Pauli-X gate defined on qubits. An implementation is developed using the Qiskit 2.x library to preserve the original resolution of the images and manage simulation complexity with a grayscale value set (2⁸ = 256 tones). The study demonstrates the mathematical equivalence of basic quantum gate operations with classical image processing operators, while also highlighting the limitations of quantum simulations on classical hardware and the necessity of superposition-based image representation models (NEQR/FRQI) required for true quantum advantage. In conclusion, this hybrid approach provides a practical basis for the development and validation of more complex quantum computer vision algorithms before the widespread availability of fault-tolerant physical quantum hardware. In this study, each pixel value of the image was sequentially sent to a quantum circuit. In this quantum circuit, the incoming grayscale level was processed using the 256 - incoming_value operation, and a negative of the image was created by forming a matrix again. A QLUT table can be created to perform this task in a shorter time.
Authors
- Davut KESEN (ORCID: https://orcid.org/0000-0002-2096-462X)
- Mehmet Şahin (ORCID: https://orcid.org/0000-0002-1066-1641)
- Hasan suay Tanın (ORCID: https://orcid.org/0009-0006-1330-5577)
Institutions
- Gaziantep University (TR)
Publication Details
- Journal
- Natural Sciences and Engineering Bulletin
- Published
- 2026-11-27
- DOI
- https://doi.org/10.66754/nase.2010397
- Primary Topic
- Quantum Computing Algorithms and Architecture
- Type
- article
- Field-Weighted Citation Impact
- 0.00