QuantumEyes: Towards Better Interpretability of Quantum Circuits

Shaolun Ruan,Qiang Guan,Paul Griffin,Ying Mao,Yong Wang
2023-11-14
Abstract:Quantum computing offers significant speedup compared to classical computing, which has led to a growing interest among users in learning and applying quantum computing across various applications. However, quantum circuits, which are fundamental for implementing quantum algorithms, can be challenging for users to understand due to their underlying logic, such as the temporal evolution of quantum states and the effect of quantum amplitudes on the probability of basis quantum states. To fill this research gap, we propose QuantumEyes, an interactive visual analytics system to enhance the interpretability of quantum circuits through both global and local levels. For the global-level analysis, we present three coupled visualizations to delineate the changes of quantum states and the underlying reasons: a Probability Summary View to overview the probability evolution of quantum states; a State Evolution View to enable an in-depth analysis of the influence of quantum gates on the quantum states; a Gate Explanation View to show the individual qubit states and facilitate a better understanding of the effect of quantum gates. For the local-level analysis, we design a novel geometrical visualization Dandelion Chart to explicitly reveal how the quantum amplitudes affect the probability of the quantum state. We thoroughly evaluated QuantumEyes as well as the novel QuantumEyes integrated into it through two case studies on different types of quantum algorithms and in-depth expert interviews with 12 domain experts. The results demonstrate the effectiveness and usability of our approach in enhancing the interpretability of quantum circuits.
Quantum Physics,Human-Computer Interaction
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the lack of transparency and interpretability of quantum circuits in quantum computing. Although quantum computing shows a significant speed advantage over classical computing in dealing with certain problems, quantum circuits are difficult to be understood due to their underlying logics (such as the time evolution of quantum states and the influence of quantum amplitudes on the probabilities of basis states). Specifically, the paper points out that the existing quantum circuit diagrams mainly provide an overall overview, but have limitations in revealing deep insights into the behavior of quantum circuits. For example, from the quantum circuit diagram, it is very difficult for users to understand the function of each quantum gate and the probability of each measured basis state in the end. To fill this research gap, the author proposes an interactive visual analysis system named QuantumEyes, aiming to enhance the interpretability of quantum circuits at both global and local levels. The global level includes three coupled visualization methods to show the changes of quantum states and their reasons: the Probability Summary View outlines the evolution of quantum state probabilities; the State Evolution View supports in - depth analysis of the influence of quantum gates on quantum states; the Gate Explanation View shows the state of a single qubit, helping to better understand the effect of quantum gates. At the local level, a novel geometric visualization - the dandelion chart - is designed to clearly show how quantum amplitudes affect the probabilities of quantum states. In conclusion, the goal of this paper is to improve the interpretability of quantum circuits through the QuantumEyes system, enabling developers and researchers to more intuitively understand the behavior of quantum circuits.