Accurate bug classification is essential for improving software quality, particularly in the emerging and complex domain of quantum computing. This paper introduces a rule-based framework for automated classification of quantum software issues across five dimensions: bug type, bug category, severity, quality attribute, and quantum-specific subtype. The framework integrates weighted keyword heuristics, TF–IDF similarity, and domain-specific rules to capture both general software defects and quantum-domain failure modes. The proposed approach was applied to 12,910 issues from 36 Qiskit repositories and validated on a stratified subset of 4,984 manually annotated issues. On this manually labeled subset, the framework achieved accuracies between 0.82 and 0.85 and macro-F1 scores ranging from 0.68 to 0.77, demonstrating strong agreement with human annotations without requiring supervised training. When compared with standard machine-learning baselines (Logistic Regression, Decision Tree, Random Forest, Gradient Boosting), the rule-based approach consistently outperformed all models across tasks, showing particularly large improvements in fine-grained and low-frequency categories such as Category (macro-F1: 0.26 vs. 0.69) and Quantum-Specific Subtype (0.15 vs. 0.77). Beyond predictive accuracy, the framework was applied to real-world 12,910 issues from 36 Qiskit repositories for large-scale distributional analysis. The results revealed that approximately 67% of issues were classical and 27% quantum-specific, with interoperability, usability, and maintainability identified as the most frequently affected quality attributes. Low-severity issues dominated (68.8%), while critical bugs accounted for around 21%. Quantum-specific defects were most prevalent at the circuit and gate abstraction levels, reflecting the hybrid and hardware-constrained nature of current quantum software development. Overall, the proposed rule-based framework offers a transparent, interpretable, and empirically validated approach for automated bug triaging in quantum software. Beyond its immediate practical utility, it provides a reproducible methodological framework that can support future hybrid and learning-based advances in quantum software engineering.
扫码关注我们
求助内容:
应助结果提醒方式:
