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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Obtaining the Negative of an Image Using Quantum Programming with Python/Qiskit

Davut KESEN, Mehmet Şahin, Hasan suay Tanın
Natural Sciences and Engineering Bulletin
Quantum Computing Algorithms and Architecture
article

Obtaining the Negative of an Image Using Quantum Programming with Python/Qiskit

Davut KESEN, Mehmet Şahin, Hasan suay Tanın
article en

Abstract

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.

Natural Sciences and Engineering BulletinVol. 3(2)
Gaziantep University (TR)
Quantum Computing Algorithms and Architecture
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon