A Uniform Representation of Classical and Quantum Source Code for Static Code Analysis
arXiv:2308.06113 · doi:10.1109/QCE57702.2023.00115
Abstract
The emergence of quantum computing raises the question of how to identify (security-relevant) programming errors during development. However, current static code analysis tools fail to model information specific to quantum computing. In this paper, we identify this information and propose to extend classical code analysis tools accordingly. Among such tools, we identify the Code Property Graph to be very well suited for this task as it can be easily extended with quantum computing specific information. For our proof of concept, we implemented a tool which includes information from the quantum world in the graph and demonstrate its ability to analyze source code written in Qiskit and OpenQASM. Our tool brings together the information from the classical and quantum world, enabling analysis across both domains. By combining all relevant information into a single detailed analysis, this powerful tool can facilitate tackling future quantum source code analysis challenges.
arXiv comment2023 IEEE International Conference on Quantum Computing and Engineering (QCE)
References in corpus (10)
- Supplementary information for "Quantum supremacy using a programmable superconducting processor"
- A simple formula for the average gate fidelity of a quantum dynamical operation
- Validating quantum computers using randomized model circuits
- Verification of quantum computation: An overview of existing approaches
- Quantum Software Engineering: Landscapes and Horizons
- Bugs in Quantum Computing Platforms: An Empirical Study
- Gate-error analysis in simulations of quantum computers with transmon qubits
- Cloud Property Graph: Connecting Cloud Security Assessments with Static Code Analysis
- Representing LLVM-IR in a Code Property Graph
- A Language-Independent Analysis Platform for Source Code