Quantum computing promises to offer significant computational advantages over classical computing, leveraging principles such as superposition and entanglement. This necessitates effective metrics and measurement techniques for evaluating quantum systems, aiding in their development and performance optimization. However, due to fundamental differences in computing paradigms and current immaturity of quantum software abstractions, classical software and hardware metrics may not directly apply to quantum computing, where the distinction between software and hardware can still be somewhat indiscernible compared to classical computing. This paper provides a comprehensive review of existing quantum software and hardware metrics in the scientific literature, highlighting key challenges in the field. Additionally, it investigates the application of Functional Size Measurement (FSM), based on the COSMIC ISO 19761 FSM Method, to measure quantum software. Three FSM approaches are analyzed by applying them to Shor’s and Grover’s algorithms, with measurement results compared to assess their effectiveness. A comparative analysis highlights the strengths and limitations of each approach, emphasizing the need for further refinement. The insights from this study contribute to the advancement of quantum metrics, especially software metrics and measurement, paving the way for the development of a unified and standardized approach to quantum software measurement and assessment.
Quantum computing promises to offer significant computational advantages over classical computing, leveraging principles such as superposition and entanglement. This necessitates effective metrics and measurement techniques for evaluating quantum systems, aiding in their development and performance optimization. However, due to fundamental differences in computing paradigms, and current immaturity of quantum software abstractions, classical software and hardware metrics may not directly apply to quantum computing, where the distinction between software and hardware can still be somewhat indiscernible compared to classical computing. This paper provides a comprehensive review of existing quantum software and hardware metrics in the scientific literature, highlighting key challenges in the field. Additionally, it investigates the application of Functional Size Measurement (FSM) based on COSMIC ISO 19761 to measure quantum software. Three FSM approaches are analyzed by applying them to Shor’s and Grover’s algorithms, with measurement results compared to assess their effectiveness. A comparative analysis highlights the strengths and limitations of each approach, emphasizing the need for further refinement. The insights from this study contribute to the advancement of quantum metrics, especially software metrics and measurement, paving the way for the development of a unified and standardized approach to quantum software measurement and assessment.
As quantum computing has progressed toward fault-tolerant implementations, quantum error correction (QEC) for quantum hardware and software has become a dominant concern. While conventional QEC measurements, such as qubit overhead, code distance, and error thresholds, quantify physical resource costs, they do not capture the software-level functionality introduced by error detection, correction, and fault-tolerant gate protocols. This study investigated the QEC contribution to the functional size of quantum software and demonstrated that this contribution can be systematically measured using the COSMIC Functional Size Measurement method. A gate-level sizing approach, known as Gates’ Occurrences, was used to quantify functional user requirements (FUR) associated with QEC processes, including logical encoding, syndrome extraction, and recovery operations. A prototype measurement tool, implemented in Qiskit (Version 0.7.2), enables the automated calculation of COSMIC Function Points (CFP) from annotated circuit representations. Case studies involving Bell state preparation, Grover’s search algorithm, and 15-to-1 magic state distillation revealed that QEC-related functionality can account for 70–85% of the total functional size, even under simplified encoding assumptions. The results underscore the importance of QEC for the functional size of quantum software. These findings offer a reproducible foundation for functional sizing and future fault-tolerant quantum applications.