Mining Quantum Software Patterns in Open-Source Projects DOI: XXXXXXX.XXXXXXX Conference: 23rd International Mining Software Repositories Conference; April 13–14,2026; Rio de Janeiro, Brazil ISBN: 978-1-4503-XXXX-X/18/06
Neilson C. L. Ramalho, Erico A. da Silva, Higor Amario de Souza, Marcos Lordello Chaim · 2026
Read Mining Quantum Software Patterns in Open-Source Projects DOI: XXXXXXX.XXXXXXX Conference: 23rd International Mining Software Repositories Conference; April 13–14,2026; Rio de Janeiro, Brazil ISBN: 978-1-4503-XXXX-X/18/06 by Neilson C. L. Ramalho, Erico A. da Silva, Higor Amario de Souza, Marcos Lordello Chaim (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2601-06281.txt.
Introduction
Quantum programmers are settling into reusable patterns, and Neilson Carlos Leite Ramalho and 3 co-authors document how in a 2026 empirical study. Newer quantum frameworks offer higher-level building blocks beyond raw circuits, attracting developers from many backgrounds. Knowing which patterns practitioners actually use guides better tools and teaching.
The team first built a knowledge base from three frameworks, Qiskit, PennyLane, and Classiq, identifying nine new patterns that extend the existing catalog. A semantic search tool then detected patterns across 985 notebooks from 80 open-source projects. Usage fell into three levels: basic circuit utilities, common algorithmic primitives such as amplitude amplification, and domain applications in finance and optimization. The pattern points to a maturing field building on shared abstractions.
Catalog record
| CREATOR | Neilson C. L. Ramalho, Erico A. da Silva, Higor Amario de Souza, Marcos Lordello Chaim |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 56 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2601-06281
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Mining Quantum Software Patterns in Open-Source Projects DOI: XXXXXXX.XXXXXXX Conference: 23rd International Mining Software Repositories Conference; April 13–14,2026; Rio de Janeiro, Brazil ISBN: 978-1-4503-XXXX-X/18/06 Neilson C. L. Ramalho, Erico A. da Silva, Higor Amario de Souza, Marcos Lordello Chaim Abstract . Quantum computing has become an active research field in recent years, as its applications in fields such as cryptography, optimization, and materials science are promising. Along with these developments, challenges and opportunities exist in the field of Quantum Software Engineering, as the development of frameworks and higher-level abstractions has attracted practitioners from diverse backgrounds. Unlike initial quantum frameworks based on the circuit model, recent frameworks and libraries leverage higher-level abstractions for creating quantum programs. This paper presents an empirical study of 985 Jupyter Notebooks from 80 open-source projects to investigate how quantum patterns are applied in practice. Our work involved two main stages. First, we built a knowledge base from three quantum computing frameworks (Qiskit, PennyLane, and Classiq). This process led us to identify and document 9 new patterns that refine and extend the existing quantum computing pattern catalog. Second, we developed a reusable semantic search tool to automatically detect these patterns across our large-scale dataset, providing a practitioner-focused analysis. Our results show that developers use patterns in three levels: from foundational circuit utilities, to common algorithmic primitives (e.g., Amplitude Amplification), up to domain-specific applications for finance and optimization. This indicates a maturing field where developers are increasingly using high-level building blocks to solve real-world problems. 1. Introduction Quantum computing (QC) has recently left the pure theoretical realm to become an active research field, with heavy investments from major companies. As technology evolves, especially in regard to hardware and noise reduction, practitioners have seen the possibility to use Quantum Computing’s capabilities to solve problems previously considered unmanageable for classical computers in areas like molecular simulations, cybersecurity, finance, and logistics. The main concept behind a quantum computer is to take advantage of specific quantum mechanics properties to perform computation ( 12 ) . Although building quantum algorithms is a promising area, developing these algorithms based on circuits poses different challenges for engineers not familiar with quantum mechanics concepts such as superposition, entanglement, interference, and the probabilistic nature of quantum computers. Classical computing has evolved over the years, providing engineers with a mature ecosystem of tools and patterns. However, the quantum domain currently lacks the development procedures and standards prevalent in classical computing, a gap that the field of Quantum Software Engineering aims to fill ( 19 ) . In order to move away from the circuit-based computing model, several authors have studied higher-level abstractions for creating quantum algorithms. These higher-level abstractions manifest themselves as quantum computing patterns ( 18 ; 2 ; 33 ; 3 ; 9 ; 6 ; 30 ) . This paper examines the patterns that practitioners use in open-source quantum projects. More specifically, our investigation aims at finding which high-level QC patterns are being used by practitioners across different repositories of open-source projects that use QC Python-based frameworks. To guide our analysis, we formulated the following research questions. RQ1. What are the most common QC concepts used in popular open-source frameworks? RQ2. What QC patterns appear in practice that are not yet documented in the literature? RQ3. What QC architectural patterns are observed in these frameworks? RQ4. How are QC patterns applied to develop practical applications, as opposed to internal framework code? We divided our work into two main stages. First, we needed to connect the abstract pattern descriptions to actual code. To do so, we built a catalog of high-level components by inspecting the source code of three popular frameworks: Classiq SDK (version 0.88.0) ( 10 ) , PennyLane (version 0.44.0) ( 31 ) , and Qiskit (version 2.3.0) ( 14 ) . We then categorized each component against the patterns documented on the Quantum Pattern Atlas website ( 22 ) . We found that the existing list of patterns was incomplete in classifying all the components we identified. Therefore, we define and add nine new patterns. The result of this first stage is a knowledge base that links patterns to concrete code examples. This database can be used as a reference by researchers, practitioners, and students. Second, we used this new, enriched catalog to analyze a list of 985 Jupyter Notebooks from 80 different open-source projects. We developed a tool that uses embedding models based on sentence transformers ( 26 ) to automatically search these projects for our listed patterns. The goal of this search was to determine which patterns are used most frequently in practice. Our analysis found that only 24 of the 61 catalog patterns were present in the QC frameworks. Of these, 22 occur in the Jupyter Notebooks, including all nine new QC patterns. This finding suggests many QC patterns do not materialize in QC applications. It also shows that practitioners are adopting higher-level abstractions at three different levels. At a foundational level, we observed heavy reliance on circuit construction utilities, indicating that fine-grained control remains important. Above this, the most frequently used patterns are algorithmic primitives, such as the Quantum Fourier Transform (QFT) and Quantum Phase Estimation (QPE), which serve as reusable building blocks. Finally, at the highest level, we find domain-specific application patterns for optimization and finance, suggesting a growing focus on solving practical problems. This layered adoption indicates a maturing ecosystem where developers are increasingly moving from low-level gate manipulation to problem-solving with high-level components. By mining open-source quantum repositories, we achieved the following contributions. (1) A knowledge base with QC patterns mapped to concrete implementations that can be used as a reference for researchers and students. (2) Nine new QC patterns identified by inspecting popular QC frameworks and grouping existing patterns into composite structures. (3) A reusable semantic tool developed to find the implementations and patterns of quantum algorithms in Python-based QC projects. (4) Insights on how QC patterns occur in 985 Jupyter Notebooks from 80 open-source projects. This work is organized as follows. Section 2 provides a short background and an overview of the current research on Quantum Software Patterns. Section 3 details the mining process we conducted to help answer the defined research questions. The results and discussion are presented in Section 4 . The related work is presented in Section 5 . We conclude the paper with possible research directions in Section 6 . 2. Background A quantum computer is a device that leverages the properties of quantum mechanics to perform computation ( 12 ) . Properties such as entanglement, superposition and interference are useful in a class of problems that are intractable by classical computers. The intersection between quantum mechanics and computation brings new challenges to classical software engineering practices, especially in understanding and handling QC properties and the probabilistic nature of quantum computers. While classical software engineering has built a robust theoretical and practical basis over recent decades, such practices for quantum computing are still emerging. To bridge this gap, the research community in Quantum Software Engineering is creating higher-level abstractions and defining reusable patterns ( 18 ; 2 ; 33 ; 3 ; 9 ; 6 ; 30 ) . Practitioners are now using frameworks that leverage these patterns and provide