Architecture decisions in quantum software systems: An empirical study on Stack Exchange and GitHub

Mst Shamima Aktar, Peng Liang, Muhammad Waseem, Amjed Tahir, Aakash Ahmad, Beiqi Zhang, Zengyang LiInf. Softw. Technol 2023

Quantum computing is rapidly transitioning from theoretical research to practical software engineering. However, while quantum hardware advances, the architectural principles governing the software side remain largely undocumented. This empirical study, recently published in Information and Software Technology, investigates how developers navigate the "wild west" of quantum software architecture by analyzing real-world discussions on GitHub and Stack Exchange.

The Quantum Software Engineering Gap

In classical computing, developers rely on decades of established architectural patterns like microservices or layered designs. In contrast, quantum software architecture decisions (ADs) are often made ad-hoc. This research addresses the "QSE gap"—the disconnect between theoretical quantum algorithms and the practical reality of building reliable software that must interface with noisy, error-prone hardware.

Conceptual overview of quantum software systems and the mining of software repositories for architectural insights.

Methodology

The researchers employed a qualitative empirical approach using data mining and manual content analysis. The process involved four key stages:

  1. Data Collection: Targeted searches on GitHub and Stack Exchange using keywords such as "architect", "design", and "pattern*".
  2. Filtration: Manual review of thousands of results to identify 385 GitHub issues and 70 Stack Exchange posts specifically related to architecture.
  3. Analysis: Application of the Constant Comparison Method to iteratively categorize data.
  4. Linguistic Pattern Mining: Classification of developer intent into patterns like "Solution Proposal" or "Problem Discovery."
The research methodology pipeline, detailing the extraction, filtration, and analysis of architectural data.

Datasets and Sources

The study draws from two primary ecosystems:

  • GitHub: 385 issues from 87 prominent projects, including industry leaders like IBM’s Qiskit, Google’s Cirq, and Xanadu’s PennyLane.
  • Stack Exchange: 70 posts across Stack Overflow, Quantum Computing, and Computer Science communities.

The authors have released their curated, labeled dataset to the community to serve as a benchmark for future automated tools and replication studies.

Key Insights

  • Maintainability Over Raw Speed: Surprisingly, Maintainability (18.53%) was discussed more frequently than Performance (15.68%). This suggests that as quantum libraries mature, developers are shifting focus toward building evolvable and readable codebases.
  • The Implementation Hurdle: The most common decision type was Implementation Decisions (22.1%), highlighting the struggle to integrate quantum circuits into classical software stacks.
  • Hardware-Aware Architecture: Unlike classical software where the OS abstracts hardware, quantum architecture is fundamentally "hardware-aware." Issues like decoherence and gate errors are not just bugs; they are architectural constraints that force high-level design changes.
  • Proactive Collaboration: Most architectural discussions are proactive, dominated by "Solution Proposals" (35.83%) and "Information Giving" (32.80%), indicating a community focused on knowledge sharing.

Challenges and Future Directions

The study identifies Design Issues (25.07%) and High Error Rates (11.37%) as the primary roadblocks. Developers frequently cited "poorly architected" legacy code in early-stage libraries as a barrier to innovation. Furthermore, the "Quantum-Classical Divide"—creating compatible interfaces between probabilistic quantum components and deterministic classical systems—remains a significant challenge.

Future work will involve validating these findings through industry surveys and developing formal decision models to help standardize design patterns in quantum engineering.

Summary updated

BibTeX
@inproceedings{aktar2023architecture,
  author = {Mst Shamima Aktar and Peng Liang and Muhammad Waseem and Amjed Tahir and Aakash Ahmad and Beiqi Zhang and Zengyang Li},
  title = {{Architecture decisions in quantum software systems: An empirical study on Stack Exchange and GitHub}},
  booktitle = {Inf. Softw. Technol},
  year = {2023},
}
Figure