AQUILA. Assistant for Quantum and Unified Intelligent Layered Architectures
Achieving quantum utility today relies on the effective design and optimization of hybrid quantum-classical software architectures. Beyond hardware constraints, a major challenge of these architectures is the absence of quantum software engineering methodologies, including best practices and design patterns, which leads to suboptimal development practices. The use of LLMs has demonstrated remarkable success in conventional software engineering tasks, but they often encounter significant limitations in constantly evolving domains such as Quantum Computing. To bridge this gap, this paper introduces AQUILA, a framework based on Retrieval Augmented Generation to elevate the quality, efficiency and design of hybrid software architectures. The system combines a dynamic knowledge base with a prompt template system that ensures the generation of highly precise, context-aware architectural solutions. Operationally, the proposed system leverages LangChain for orchestration, Ollama for secure and local LLM execution and external APIs for high-capacity inference. AQUILA has been validated across two phases: retrieval performance via RAGAs metrics and a generation quality evaluation, contrasting an LLM-as-a-judge approach with human expert consensus. The results indicate effective context retrieval (achieving an F1-score of 0.822), while showing that AQUILA consistently improves response quality over the LLM without context. These findings highlight the potential of domain-grounded retrieval to support quantum software engineers and provide a practical foundation for adopting reliable hybrid architectures in industrial contexts.
Authors
- Ricardo Pérez‐Castillo (ORCID: https://orcid.org/0000-0002-9271-3184)
- Francisco Javier Espada
- Ana Díaz Muñoz (ORCID: https://orcid.org/0000-0001-6515-8835)
- Fernando Martín-Martín
Institutions
- University of Castilla-La Mancha (ES)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-24
- DOI
- https://doi.org/10.21203/rs.3.rs-11452937/v1
- Primary Topic
- Quantum Computing Algorithms and Architecture
- Type
- preprint
Funders
- European Commission
- Universidad de Castilla-La Mancha
- European Regional Development Fund
- Agencia Estatal de Investigación