KetGPT - Dataset Augmentation of Quantum Circuits using Transformers

Boran Apak, Medina Bandic, Aritra Sarkar, Sebastian Feld
2/20/2024
quant-phcs.AIcs.ET

No official code found. Best implementation: QML-Group/KetGPT (6 stars, AGPL-3.0, last commit 2024-02-27).

Abstract

Quantum algorithms, represented as quantum circuits, can be used as benchmarks for assessing the performance of quantum systems. Existing datasets, widely utilized in the field, suffer from limitations in size and versatility, leading researchers to employ randomly generated circuits. Random circuits are, however, not representative benchmarks as they lack the inherent properties of real quantum algorithms for which the quantum systems are manufactured. This shortage of `useful' quantum benchmarks poses a challenge to advancing the development and comparison of quantum compilers and hardware. This research aims to enhance the existing quantum circuit datasets by generating what we refer to as `realistic-looking' circuits by employing the Transformer machine learning architecture. For this purpose, we introduce KetGPT, a tool that generates synthetic circuits in OpenQASM language, whose structure is based on quantum circuits derived from existing quantum algorithms and follows the typical patterns of human-written algorithm-based code (e.g., order of gates and qubits). Our three-fold verification process, involving manual inspection and Qiskit framework execution, transformer-based classification, and structural analysis, demonstrates the efficacy of KetGPT in producing large amounts of additional circuits that closely align with algorithm-based structures. Beyond benchmarking, we envision KetGPT contributing substantially to AI-driven quantum compilers and systems.

View on arXivView PDF

Code Implementations(1)

QML-Group/KetGPTCommunity77%
AGPL-3.0

Dataset Augmentation of Quantum Circuits using Transformers

64Jupyter NotebookMar 28, 20232 years agoAGPL-3.0

Similar Papers

Cite this paper

@article{apak2024ketgpt,
  title  = {KetGPT - Dataset Augmentation of Quantum Circuits using Transformers},
  author = {Boran Apak and Medina Bandic and Aritra Sarkar and Sebastian Feld},
  year   = {2024},
  eprint = {2402.13352},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.13352v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.13352.svg)](https://codeofpaper.com/paper/2402.13352)

Discussion