Skip to content

Variational Quantum Algorithms for Unsupervised Image Segmentation

License

Notifications You must be signed in to change notification settings

supreethmv/NISQ-Seg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NISQ-Seg: Qubit-efficient Variational Quantum Algorithms for Image Segmentation

Paper DOI
Conference
License: LGPL v2.1
LinkedIn: SupreethMV
Website: SupreethMV

VQA Segmentation Overview

Overview

Welcome to NISQ-Seg, the official repository for the paper "Qubit-efficient Variational Quantum Algorithms for Image Segmentation", accepted at the Quantum Computing and Engineering 2024 (QCE'24) conference by IEEE. This repository provides the full pipeline for reproducing the experimental results and demonstrations of the three primary encoding methods introduced in the paper:

VQA Segmentation Overview
  1. Parametric Gate Encoding (PGE)
  2. Ancilla Basis Encoding (ABE)
  3. Adaptive Cost Encoding (ACE)

These quantum techniques are optimized for Noisy Intermediate-Scale Quantum (NISQ) devices and demonstrate efficient qubit usage for graph-based image segmentation tasks.

Paper Preprint

The preprint is available on arXiv.


Repository Structure

NISQ-Seg/
│
├── notebooks/
│   ├── abe_experiment.ipynb          # ABE experiments and results
│   ├── ace_experiment.ipynb          # ACE experiments and results
│   ├── pge_experiment.ipynb          # PGE experiments and results
│   ├── paper_figures.ipynb           # For generating paper figures
│   ├── read_results.ipynb            # Parsing and analyzing results
│
├── src/
│   ├── __init__.py                   # Init file for encodings and utilities
│   ├── abe.py                        # Ancilla Basis Encoding implementation
│   ├── ace.py                        # Adaptive Cost Encoding implementation
│   ├── graph_utils.py                # Utility functions for graph generation
│   ├── pge.py                        # Parametric Gate Encoding implementation
│
├── plots/                            # All generated experiment plots
│
├── results/                          # Folder to store experimental results
│
├── _repo_data/                       # Data folder for README images
│   ├── author_image.jpg              # Author image
│   ├── VQA_segmentation_overview.jpg # Overview of segmentation technique
│   └── AdaptiveCostEncoding.jpg      # ACE visualization
│
├── README.md                         # Project documentation (you're reading this!)
├── requirements.txt                  # Python dependencies
└── LICENSE                           # License (GNU LGPL2.1)
└── tutorial.ipynb                # Full pipeline tutorial for 2x2 image

Getting Started

1. Clone the Repository

git clone https://github.com/supreethmv/NISQ-Seg.git
cd NISQ-Seg

2. Install Dependencies

All required Python libraries are listed in the requirements.txt file. Install them using the following command:

pip install -r requirements.txt

The dependencies include essential quantum libraries (like Qiskit), optimization libraries (like SciPy), and plotting tools (like Matplotlib).

3. Run the Jupyter Notebooks

Explore the different encoding methods by running the provided Jupyter notebooks:

  • tutorial.ipynb: A walkthrough of the image segmentation pipeline for a 2x2 image.
VQA Segmentation Overview

  • pge_experiment.ipynb: Experiments with Parametric Gate Encoding (PGE).
  • abe_experiment.ipynb: Experiments with Ancilla Basis Encoding (ABE).
  • ace_experiment.ipynb: Experiments with Adaptive Cost Encoding (ACE).
VQA Segmentation Overview

Citing this Work

If you find this code useful in your research, please cite the following paper:

@article{venkatesh2024qubit,
  title={Qubit-efficient Variational Quantum Algorithms for Image Segmentation},
  author={Venkatesh, Supreeth Mysore and Macaluso, Antonio and Nuske, Marlon and Klusch, Matthias and Dengel, Andreas},
  journal={arXiv preprint arXiv:2405.14405},
  year={2024}
}

Contact

Supreeth Mysore Venkatesh

For any inquiries, please reach out to:

Contributors

Supreeth Mysore Venkatesh

About

Variational Quantum Algorithms for Unsupervised Image Segmentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published