Transpiling quantum circuits by a transformers-based algorithm
Michele Banfi, Paolo Zentilini, Sebastiano Corli, Enrico Prati

TL;DR
This paper introduces a transformer-based model that efficiently transpiles quantum circuits from standard formats to hardware-specific gate sets, achieving high accuracy and scalable complexity for quantum computing applications.
Contribution
It develops the first transformer model for quantum circuit transpilation, demonstrating high accuracy and polynomial scalability for circuits up to five qubits.
Findings
Transpilation accuracy of 99.98% for circuits up to five qubits.
Model complexity scales polynomially with circuit depth and size.
Feasibility of training on HPC infrastructures for larger models.
Abstract
Transformers have gained popularity in machine learning due to their application in the field of natural language processing. They manipulate and process text efficiently, capturing long-range dependencies among data and performing the next word prediction. On the other hand, gate-based quantum computing is based on controlling the register of qubits in the quantum hardware by applying a sequence of gates, a process which can be interpreted as a low level text programming language. We develop a transformer model capable of transpiling quantum circuits from the qasm standard to other sets of gates native suited for a specific target quantum hardware, in our case the set for the trapped-ion quantum computers of IonQ. The feasibility of a translation up to five qubits is demonstrated with a percentage of correctly transpiled target circuits equal or superior to 99.98%. Regardless the depth…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Computing Algorithms and Architecture · Computational Physics and Python Applications · Quantum many-body systems
