[Paper Review] Explaining Quantum Circuits with Shapley Values: Towards Explainable Quantum Machine Learning
The paper introduces Shapley values for quantum circuit explanations (SVQXs) to quantify gate-level contributions in parameterized quantum circuits for QML tasks, with experiments on simulators and hardware.
Methods of artificial intelligence (AI) and especially machine learning (ML) have been growing ever more complex, and at the same time have more and more impact on people's lives. This leads to explainable AI (XAI) manifesting itself as an important research field that helps humans to better comprehend ML systems. In parallel, quantum machine learning (QML) is emerging with the ongoing improvement of quantum computing hardware combined with its increasing availability via cloud services. QML enables quantum-enhanced ML in which quantum mechanics is exploited to facilitate ML tasks, typically in the form of quantum-classical hybrid algorithms that combine quantum and classical resources. Quantum gates constitute the building blocks of gate-based quantum hardware and form circuits that can be used for quantum computations. For QML applications, quantum circuits are typically parameterized and their parameters are optimized classically such that a suitably defined objective function is minimized. Inspired by XAI, we raise the question of the explainability of such circuits by quantifying the importance of (groups of) gates for specific goals. To this end, we apply the well-established concept of Shapley values. The resulting attributions can be interpreted as explanations for why a specific circuit works well for a given task, improving the understanding of how to construct parameterized (or variational) quantum circuits, and fostering their human interpretability in general. An experimental evaluation on simulators and two superconducting quantum hardware devices demonstrates the benefits of the proposed framework for classification, generative modeling, transpilation, and optimization. Furthermore, our results shed some light on the role of specific gates in popular QML approaches.
Motivation & Objective
- Motivate the need for explainability in quantum machine learning (XQML).
- Propose a framework to explain quantum circuits by attributing importance to gates or gate groups using Shapley values.
- Enable robust, model-agnostic explanations applicable to noisy intermediate-scale quantum (NISQ) devices.
Proposed method
- Define SVQXs by treating gates (or gate groups) as players in a coalitional game.
- Use uncertain Shapley values to account for noise and measurement randomness in QPU results.
- Define a general value function v(S) based on measurement outcomes to attribute gate contributions.
- Propose multiple estimators for SVs under uncertainty to approximate contributions.
- Describe possible value functions tailored to QML tasks, including expressibility and entangling ability metrics.
Experimental results
Research questions
- RQ1How can Shapley values be used to assign gate-level contributions in quantum circuits for QML tasks?
- RQ2What value functions best capture circuit expressibility, entangling capability, and hardware performance in SVQXs?
- RQ3How does SVQX-based explanation perform across simulators and real quantum hardware?
Key findings
- SVQXs provide gate- or gate-group level attributions that explain circuit performance with respect to a chosen value function.
- Uncertain SVs account for measurement noise, transpilation, and SPAM errors, yielding robust explanations on NISQ devices.
- Examples include expressing circuit expressibility and entangling capability as value functions and attributing their contributions to individual gates.
- The framework accommodates both simulated and hardware experiments, enabling insights into QML circuit design and transpilation efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.