Papers
Topics
Authors
Recent
Search
2000 character limit reached

C2|Q>: A Robust Framework for Bridging Classical and Quantum Software Development -- RCR Report

Published 5 Apr 2026 in cs.SE | (2604.04112v1)

Abstract: This is the Replicated Computational Results (RCR) Report for the paper C2|Q>: A Robust Framework for Bridging Classical and Quantum Software Development. The paper introduces a modular, hardware-agnostic framework that translates classical problem specifications - Python code or structured JSON - into executable quantum programs across ten problem families and multiple hardware backends. We release the framework source code on GitHub at https://github.com/C2-Q/C2Q, a pretrained parser model on Zenodo at https://zenodo.org/records/19061125, evaluation data in a separate Zenodo record at https://zenodo.org/records/17071667, and a PyPI package at https://pypi.org/project/c2q-framework/ for lightweight CLI and API use. Experiment 1 is supported through a released pretrained model and training notebook, while Experiments 2 and 3 are directly executable via documented make targets. This report describes the artifact structure, setup instructions, and the mapping from each execution route to the corresponding experiment.

Summary

  • The paper presents a robust framework that automates the translation of classical code (Python/JSON) into executable quantum circuits.
  • It employs a three-module architecture that leverages pretrained models and dynamic hardware selection to optimize quantum algorithm deployment.
  • The system demonstrates high encoding accuracy and effective QPU matching across experiments, reducing manual configuration for scalable hybrid workflows.

C2|Q>: A Robust Framework for Bridging Classical and Quantum Software Development

Introduction

C2|Q> addresses a longstanding challenge in quantum software engineering: the interoperability gap between classical software development practices and the requirements for deploying quantum workloads on contemporary quantum processing units (QPUs). The framework delivers a comprehensive, modular, and hardware-agnostic software stack that automates the translation of classical problem statementsโ€”expressed as Python code or structured JSONโ€”into executable quantum circuits, supporting a range of computational problems across major quantum hardware providers. This essay provides a technical summary and analysis of the C2|Q> framework as detailed in the RCR report (2604.04112), with a focus on empirical coverage, evaluation, and integration pipelines.

Framework Architecture and Workflow

C2|Q> is organized into three major modules: encoder, deployment, and decoder. The encoder parses classical problem specifications, leveraging a pretrained neural model (CodeBERT variant) for Python input, and direct schema-guided extraction for structured JSON. Problem classification is performed to assign the input to one of ten quantum-relevant familiesโ€”chiefly combinatorial optimization (e.g., MaxCut, MIS, TSP, Clique, K-Coloring, Vertex Cover), integer factorization, and basic arithmetic (addition, subtraction, multiplication).

The output of the encoder is a quantum-compatible format (QCF), an intermediate representation capturing the abstract quantum specification required by the selected quantum algorithm. The deployment module automatically selects and configures appropriate quantum algorithms (e.g., QAOA) and maps them to native circuits. It includes an extensible hardware recommendation engine that factors in backend error rates, resource constraints, execution cost, and platform capabilities across multiple providers (IBM, IonQ, IQM, Rigetti, Quantinuum). The decoder module interprets quantum resultsโ€”either from (simulated) execution or physical devicesโ€”and transforms them into human-readable outputs. Artifacts including executable code, structured outputs, and summary PDF reports are generated as part of the workflow.

Evaluation and Numerical Results

The framework's evaluation addresses three core research dimensions: encoder effectiveness, deployment/hardware recommendation, and end-to-end generalizability.

Encoder Performance (Experiment 1, RQ1):

The parser model is evaluated on a labeled set of synthetic Python programs and JSON inputs. Metrics include per-class precision, recall, and F1-scores, as well as aggregate encoder completion rates (covering both accurate QCF translation and quantum circuit instantiation). The released pretrained model and notebook enable full inspection and reproduction for inference-level validation. Precision and recall scores are presented per-problem family, enabling detailed error analysis.

Deployment and Hardware Recommendation (Experiment 2, RQ2):

The deployment module is tested via the execution of QAOA circuits for MaxCut on 3-regular graphs, covering a diverse set of devices (nine QPUs from five providers). Evaluation criteria include estimated quantum error rates, total wall-clock execution time, and monetary cost, as functions of qubit count (scaling up to 56 qubits, a notably large benchmark for open quantum software frameworks). The recommenderโ€™s outputs confirm the core claim of C2|Q>: the system consistently identifies, for given cost and fidelity constraints, a "winning" device (commonly Quantinuum H1/H2 under default metrics), validating backend selection logic on heterogeneous hardware.

End-to-End Validation (Experiment 3, RQ3):

End-to-end functionality is measured across 434 Python programs and 100 JSON problem descriptions, executed via the Qiskit Aer simulator; representative inputs receive additional real-hardware validation on IBM Brisbane and Finlandโ€™s Helmi QPU. For simulator routes, the workflow achieves a high completion rate and comparative advantage in deployment effort, as measured by the reduced requirement for manual lines of code and explicit configuration decisions over corresponding hand-written Qiskit baselines. Usability metrics are released as part of the artifact archive.

Artifact Reproducibility and Distribution Model

A distinguishing feature of this work is its rigorous support for open science. The C2|Q> source code is publicly available on GitHub, with a PyPI package for lightweight CLI/API use and Zenodo deposits for all major dataset and model artifacts. Three practical execution routes are documented: a Docker-based model-free smoke test, a full source-checkout reproduction path (including parser model deployment), and a PyPI-based quick-start route. The framework is validated against clean-machine installation, and all experiments (bar access-dependent hardware validation) are fully executable with concrete passing indicators for comparison to archival outputs.

Implications and Future Directions

C2|Q> demonstrates that the semantic and infrastructural chasm between classical and quantum programming can be mitigated with modern code understanding models and a modular translation pipeline, exposing quantum computing to classical developers without requiring quantum-specific expertise. The architecture is hardware-agnostic, facilitating adaption as quantum hardware evolves and additional algorithms or problem families are integrated.

From a theoretical perspective, the released framework provides a testbed for empirical studies on quantum-classical crossover semantics, model-driven code translation, and automated backend selection. On the practical front, C2|Q> provides a foundation for scalable quantum workflow automation, benchmarking, and comparative studies in hybrid computation. Potential future enhancements include expanding domain coverage (e.g., quantum chemistry, simulation), refining model-based extraction for ambiguous classical code, and integrating dynamic resource estimation or error-mitigation pipelines as hardware matures.

Conclusion

C2|Q> operationalizes a hardware-agnostic, reproducible pathway for classical-to-quantum software translation, supporting a diverse set of problem domains and quantum architectures. The framework is empirically grounded with extensive public artifacts, concrete reproduction pathways, and comprehensive evaluation. This delivers a significant advance for the development, benchmarking, and deployment of quantum-classical hybrid workflows, with far-reaching implications for software engineering practice as large-scale quantum devices become increasingly accessible (2604.04112).

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We found no open problems mentioned in this paper.

Collections

Sign up for free to add this paper to one or more collections.

GitHub

Tweets

Sign up for free to view the 1 tweet with 1 like about this paper.