Search papers, labs, and topics across Lattice.
This study enhances a quantum-pattern mining tool by integrating two new matching channels and a vocabulary expansion step, achieving a significant accuracy improvement from a micro-F1 score of 0.449 to 0.712 on the Qrisp framework. By analyzing composition graphs of quantum software, the authors reveal insights into how patterns are implemented and co-occur within frameworks, as well as the influence of developer calls versus internal framework calls on pattern detection. The release of the open-source mining pipeline and knowledge base facilitates reproducible research on the adoption and evolution of quantum software patterns across multiple frameworks.
Quantum software patterns are not just theoretical; they occur in practice, and this tool reveals how they are actually composed and utilized in real projects.
Quantum software patterns provide high-level abstractions for building quantum programs, but there is still little empirical evidence on how they are adopted in practice. In prior work, we extended an existing quantum-pattern atlas into a 61-pattern catalog, created a knowledge base that links framework components to those patterns, and built a tool that mines pattern implementations from open-source code. We applied this tool on 80 projects and find that all 23 patterns occur in practice. In this work, we extend the tool with two additional matching channels and a vocabulary expansion step, and execute a quantitative evaluation of its accuracy on Qrisp, a framework not present in the knowledge base, reaching a micro-F1 of 0.712 against 0.449 without the expansion step. We then construct composition graphs that record calls among the high-level framework components associated with patterns and store them in a graph database. We use these graphs to examine how pattern implementations are assembled inside each framework, why patterns co-occur, and how much of a pattern's detection count comes from components called directly by developers rather than introduced through internal framework calls. We release qpa, an open-source mining pipeline, together with the knowledge base, which maps 286 framework components across five sources to the pattern catalog, maintained with the support of an LLM ensemble that classifies newly extracted components, and the resulting pattern usage dataset, to support reproducible studies on the adoption and evolution of quantum patterns.