REVIEW 4 major objections 4 minor 1 cited by
Quantum Quandaries: Unraveling Encoding Vulnerabilities in Quantum Neural Networks
T0 review · 4 major / 4 minor · reviewed 2026-08-09 · deepseek-v4-flash
Pith's one-line read An adversary with white-box access to a transpiled quantum neural network can infer the user's encoding scheme about 95% of the time, and the paper's proposed transient obfuscation defense reduces detection to about 42%.
desk verdict A credible encoding-classification attack is undermined by a defense that a white-box adversary can trivially bypass, plus some overstated novelty. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The central mechanism is the transpilation fingerprint: after the compiler maps a QNN to a noisy backend, the encoding circuit leaves characteristic gate sequences, rotation-angle statistics, and entanglement patterns. The attack's machinery is a feature-extraction pipeline that condenses these fingerprints into $27+2q$ numbers and a two-layer MLP that classifies them. The defense's machinery is a transient scrambling unitary $U_{\mathrm{obf}} = (\prod_i H_i R_X(\theta_i))(\prod_j \mathrm{CNOT}_{2j,2j+1})$ applied right after the encoding and undone before the parameterized circuit, with a hardware barrier preventing the compiler from simplifying the pair; the intent is to mask the encoding fingerprints while leaving the final quantum state exactly as the original encoding produced.
What would settle it
Train the same feature-extraction and classification pipeline on only the gates that appear before the obfuscation layer in defended circuits; if encoding classification accuracy remains near 95%, then the defense does not hide the encoding from an adversary who inspects the circuit prefix.
Extended reading notes
Core claim
The central claim is that encoding schemes are identifiable from transpilation artifacts with high reliability. The authors construct 18,000 simulated 3-qubit circuits combining three encoding types (amplitude, basis, and angle with Rx, Ry, or Rz rotations) and varied parameterized circuits, transpile them on a noisy hardware-like backend, and extract $27+2q$ features per circuit covering gate-count ratios (notably X versus SX), rotation angle distributions and correlations, RZ-SX sequence frequencies, and entanglement structure. A two-layer MLP classifies the encoding with 94-95% test accuracy and F1 scores near 0.94; amplitude encoding is easiest to detect and basis encoding is the hardest. The paper also proposes a transient obfuscation layer $U_{\mathrm{obf}} = (\prod_i H_i R_X(\theta_i))(\prod_j \mathrm{CNOT}_{2j,2j+1})$ inserted between encoding and PQC, with a compiler barrier and exact inverse before the PQC, and reports that this lowers adversarial detection accuracy to about 42%, which it describes as near random chance, with an average circuit-depth increase of about 8.5%.
Load-bearing premise
The defense depends on the assumption that hiding the encoding behind a random unitary and its inverse actually prevents detection; an adversary who inspects the circuit and notices that the original encoding gates are still the first gates would not be fooled.
Editorial extensions
If this is right
- A malicious quantum cloud provider can determine whether a submitted QNN uses basis, amplitude, or angle encoding and, for angle encoding, which rotation axis, before executing the job.
- This recovered encoding can be reused to train a clone model or sold, since encoding choice often embeds domain-specific preprocessing that is part of the model's intellectual property.
- The attack's feature count grows linearly with qubits, from 33 features at 3 qubits to 55 at 14 qubits, so it remains practical for near-term QNN sizes.
- The transient obfuscation layer reduces adversarial detection accuracy from about 95% to about 42% with a depth overhead of about 8.5% for a five-layer QNN, and the overhead fraction shrinks for deeper circuits.
Reading between the lines
- The paper describes 42% as near random chance, but with five encoding classes random guessing would give 20%, so the defense still leaves a detectable signal.
- Because the encoding gates remain the first gates in the transpiled circuit and the obfuscation and inversion gates are all present with concrete parameters, a classifier trained only on the pre-obfuscation prefix would likely recover the encoding; the reported 42% comes from a classifier trained on unobfuscated circuits, not one that adapts to the defense.
- The attack evaluation uses a simulated noisy backend; testing the classifier on real hardware outputs would clarify whether the 95% accuracy transfers to physical devices.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper studies encoding-scheme leakage in quantum neural networks (QNNs) running on untrusted quantum cloud services. The authors propose a supervised classifier that, given a transpiled QNN circuit, infers whether basis, amplitude, or angle encoding (with the specific rotation axis) was used, reporting about 95% accuracy. They also propose a defense consisting of a transient "obfuscation layer" with randomized rotations and entanglement placed after the encoding and inverted before the PQC, reporting that this reduces detection accuracy to about 42% with a depth overhead of about 8.5%. The claimed contribution is a new side-channel attack via transpilation artifacts and a lightweight mitigation.
Significance. If the attack and defense results were reliable, the work would identify a practically relevant IP-leakage channel for QML-as-a-Service and offer a low-overhead countermeasure. The paper offers a concrete feature-engineering pipeline and a reproducible framing of the classification task, which are useful starting points for studying transpilation side channels. However, the proposed defense is structurally ineffective under the paper's own white-box threat model, and the central quantitative claims are not supported by sufficient experimental detail or statistical rigor. As presented, the paper does not establish a viable defense, which limits its current significance.
major comments (4)
- [IV (Obfuscation Phase) and III-B] The defense is ineffective under the stated white-box threat model. Section IV places the obfuscation layer after the encoding circuit, so the original encoding gates remain the first gates in the transpiled circuit, and the obfuscation and inversion layers are fully visible with concrete parameters. An adversary who receives the complete transpiled circuit (as assumed in Section III-B) can ignore U_obf and U_obf^{-1} and inspect the initial gate sequence to determine whether the encoding is basis (X/SX patterns), angle (Rx/Ry/Rz rotations), or amplitude (state-preparation unitary). The reported drop to 42% comes from a classifier trained on features of the entire obfuscated circuit; it does not model an adversary who restricts analysis to the encoding prefix. The central claim that the defense 'masks encoding fingerprints' is therefore unsupported.
- [Abstract and V-D] The paper repeatedly states that the defense reduces adversarial detection accuracy to 'near random chance ≈42%'. This is numerically incorrect: the classification task has five classes (amplitude, basis, Rx, Ry, Rz), so random guessing yields 20% accuracy. A 42% detection rate is more than twice the chance level and indicates that substantial encoding information remains available to the adversary. Since this is the headline measure of defense efficacy, the misstatement is load-bearing.
- [V] The empirical evaluation is reported as point estimates without sufficient reproducibility support. The experiments use a single Qiskit fake backend (GenericBackendV2), with no code release, no random seeds, no repeated runs, and no confidence intervals or error bars. The 95% attack accuracy and the 42% defense accuracy are each from a single 60-20-20 split of the generated dataset. Given that the paper's conclusions are quantitative security claims, this level of statistical reporting is inadequate.
- [III-C.1 and V-B] The dataset is generated under the assumption that each qubit encodes exactly one feature (Section III-B), and the evaluation is limited to near-term-sized circuits (3 to 14 qubits). This is a stated limitation, but the paper's abstract and conclusion do not qualify the claimed vulnerability accordingly. The attack's usefulness outside this narrow setting, particularly for dense angle encoding or hybrid encodings, is not demonstrated.
minor comments (4)
- [V-C] The text says 'For a 3-qubit system, the attack achieves 94% accuracy' and then says 'As qubit count scales to 14, test accuracy improves from 90% to 95%'; the relationship between the 94% figure and the stated 90%-to-95% range is unclear and should be clarified.
- [V-A] Figure 2 is described as showing training and validation accuracy and loss, but the caption does not define which curve corresponds to training vs validation; please make the figure self-explanatory.
- [References] Reference [15] cites 'Amazon, Saiwa' with a malformed URL; the attribution should be fixed, and the reference should be to the actual SaaS/MaaS service being described.
- [II-C] The paper mentions hybrid encoding techniques in Section II-C.4 but does not include them in the threat model or evaluation; a sentence explaining why they are excluded would help.
Circularity Check
No significant circularity: the attack is a held-out supervised classification result and the defense weakness is an evaluation gap, not a circular derivation.
full rationale
The paper's central claim — that an adversary can predict the encoding scheme with ≈95% accuracy from transpiled-circuit features — is an empirical supervised-learning result. The dataset is generated with known encoding labels, features are extracted from the transpiled circuits, an MLP is trained on a 60% split, and accuracy is reported on a held-out 20% test set. The labels are not derived from the fitted model, and the features are not fitted parameters renamed as predictions; this is standard classification, not circularity. Feature engineering guided by known gate-structure differences (e.g., X/SX ratios for basis encoding, rotation statistics for angle encoding) is legitimate supervised learning, not a self-definitional tautology. The proposed defense is indeed logically weak: U_obf and U_obf^{-1} are appended after the encoding circuit and before the PQC, leaving the original encoding gates visible at the start of the transpiled circuit, so a white-box adversary could ignore the obfuscation and inspect the encoding prefix directly. The reported drop to 42% is an empirical evaluation against the paper's own full-circuit classifier, not against an adversary who exploits the visible encoding gates, and 42% is not near random chance for a five-class problem (20%). However, this is an evaluation mismatch and a correctness concern, not a circular derivation: the defense claim does not reduce by construction to its inputs, and no equation in the paper defines the attack accuracy in terms of the defense or vice versa. Self-citations ([19], [20], [24]) appear only in related-work and threat-model context and are not load-bearing for the attack's validity or the defense's evaluation. No circular step can be exhibited with a specific reduction, so the circularity score is 0.
Assumptions & free parameters
free parameters (3)
- Feature count formula =
27 + 2 * qubits
- MLP hidden layer sizes =
25 and 10 neurons
- Obfuscation rotation angle range =
uniform in [-π, π]
assumptions (5)
- domain assumption Victim uses one of basis, amplitude, or angle encoding and encodes exactly one feature per qubit
- domain assumption Adversary has white-box access to the transpiled circuit and the measurement results
- domain assumption Qiskit GenericBackendV2 fake backend faithfully reproduces real transpilation artifacts
- domain assumption The compiler barrier prevents cancellation or rearrangement of the obfuscation and inversion gates
- standard math U_obf U_obf^dagger equals identity
Cite this review
Pith. "Pith review of Quantum Quandaries: Unraveling Encoding Vulnerabilities in Quantum Neural Networks." pith.science (2026). https://pith.science/paper/HEUBK3VU
@misc{pith2026250201486,
author = {Pith},
title = {Pith review of: Quantum Quandaries: Unraveling Encoding Vulnerabilities in Quantum Neural Networks},
year = {2026},
howpublished = {\url{https://pith.science/paper/HEUBK3VU}},
note = {Machine review of arXiv:2502.01486}
}
read the original abstract
Quantum computing (QC) has the potential to revolutionize fields like machine learning, security, and healthcare. Quantum machine learning (QML) has emerged as a promising area, enhancing learning algorithms using quantum computers. However, QML models are lucrative targets due to their high training costs and extensive training times. The scarcity of quantum resources and long wait times further exacerbate the challenge. Additionally, QML providers may rely on third party quantum clouds for hosting models, exposing them and their training data to potential threats. As QML as a Service (QMLaaS) becomes more prevalent, reliance on third party quantum clouds poses a significant security risk. This work demonstrates that adversaries in quantum cloud environments can exploit white box access to QML models to infer the users encoding scheme by analyzing circuit transpilation artifacts. The extracted data can be reused for training clone models or sold for profit. We validate the proposed attack through simulations, achieving high accuracy in distinguishing between encoding schemes. We report that 95% of the time, the encoding can be predicted correctly. To mitigate this threat, we propose a transient obfuscation layer that masks encoding fingerprints using randomized rotations and entanglement, reducing adversarial detection to near random chance 42% , with a depth overhead of 8.5% for a 5 layer QNN design.
Figures
Forward citations
Cited by 1 Pith paper
-
An End-to-End Multi-Stage Kill-Chain Attack on Quantum Neural Networks: Demonstration on Trapped-Ion Hardware
A full kill-chain reconstructs QNN structure from simulated power traces then injects timed crosstalk to approximate adversarial inputs on AQT trapped-ion hardware.
Reference graph
Works this paper leans on
-
[24]
Quantum data breach: Reusing training dataset by untrusted quantum clouds,
S. Upadhyay and S. Ghosh, “Quantum data breach: Reusing training dataset by untrusted quantum clouds,” 2024. [Online]. Available: https://arxiv.org/abs/2407.14687
arXiv 2024
-
[1]
Quantum convolutional neural networks,
I. Cong, S. Choi, and M. D. Lukin, “Quantum convolutional neural networks,” Nature Physics, vol. 15, no. 12, pp. 1273–1278, 2019
2019
-
[2]
Quantum machine learning,
J. Biamonte, P. Wittek, N. Pancotti, P. Rebentrost, N. Wiebe, and S. Lloyd, “Quantum machine learning,” Nature, vol. 549, no. 7671, pp. 195–202, 2017
2017
-
[3]
A primer on security of quantum computing,
S. Ghosh, S. Upadhyay, and A. A. Saki, “A primer on security of quantum computing,” arXiv preprint arXiv:2305.02505 , 2023
arXiv 2023
-
[4]
Potential of quantum com- puting for drug discovery,
Y . Cao, J. Romero, and A. Aspuru-Guzik, “Potential of quantum com- puting for drug discovery,” IBM Journal of Research and Development , vol. 62, no. 6, pp. 6–1, 2018
work page 2018
-
[5]
A quantum approximate optimization algorithm,
E. Farhi, J. Goldstone, and S. Gutmann, “A quantum approximate optimization algorithm,” arXiv preprint arXiv:1411.4028 , 2014
arXiv 2014
-
[6]
The variational quantum eigensolver: a review of methods and best practices,
J. Tilly, H. Chen, S. Cao, D. Picozzi, K. Setia, Y . Li, E. Grant, L. Wossnig, I. Rungger, G. H. Booth et al. , “The variational quantum eigensolver: a review of methods and best practices,” Physics Reports, vol. 986, pp. 1–128, 2022
work page 2022
-
[7]
Quantum computing for finance: Overview and prospects,
R. Or ´us, S. Mugel, and E. Lizaso, “Quantum computing for finance: Overview and prospects,” Reviews in Physics , vol. 4, p. 100028, 2019
work page 2019
Show all 27 references
-
[8]
Quantum computing led innovation for achieving a more sustainable covid-19 healthcare industry,
S. Gupta, S. Modgil, P. C. Bhatt, C. J. C. Jabbour, and S. Kamble, “Quantum computing led innovation for achieving a more sustainable covid-19 healthcare industry,” Technovation, vol. 120, p. 102544, 2023
2023
-
[9]
Quantum support vector machine for big data classification,
P. Rebentrost, M. Mohseni, and S. Lloyd, “Quantum support vector machine for big data classification,” Physical review letters , vol. 113, no. 13, p. 130503, 2014
2014
-
[10]
Quantum generative adversarial learning,
S. Lloyd and C. Weedbrook, “Quantum generative adversarial learning,” Physical review letters, vol. 121, no. 4, p. 040502, 2018
2018
-
[11]
The power of quantum neural networks,
A. Abbas, D. Sutter, C. Zoufal, A. Lucchi, A. Figalli, and S. Woerner, “The power of quantum neural networks,” Nature Computational Sci- ence, vol. 1, no. 6, pp. 403–409, 2021
2021
-
[12]
IBM Quantum,
IBM, “IBM Quantum,” 2024. [Online]. Available: https://www.ibm. com/quantum
2024
-
[13]
Google Quantum Computer,
Google Quantum AI, “Google Quantum Computer,” 2024. [Online]. Available: https://quantumai.google/quantumcomputer
2024
-
[14]
Amazon Braket,
Amazon, “Amazon Braket,” 2024. [Online]. Available: https://aws. amazon.com/braket/
2024
-
[15]
[Online]
——, “Saiwa,” 2023. [Online]. Avail- able: Saiwa.[a.n.d.].MachineLearningasaService(MLaaS) | Everythingyouneedtoknowaboutthat.https://saiwa.ai/blog/mlaas-1/
2023
-
[16]
Orquestra,
Z. Computing, “Orquestra,” May 2021. [Online]. Available: https: //www.zapatacomputing.com/orquestra/
2021
-
[17]
C. Q. Computing, “pytket,” May 2021. [Online]. Available: https: //cqcl.github.io/pytket/build/html/index.html
2021
-
[18]
Quantum,
baidu, “Quantum,” 2024. [Online]. Available: https://www.insidequantumtechnology.com/news-archive/ chinas-baidu-rolls-beijing-based-quantum-computer-and-access-platform/
2024
-
[19]
Robust and secure hybrid quantum- classical computation on untrusted cloud-based quantum hardware,
S. Upadhyay and S. Ghosh, “Robust and secure hybrid quantum- classical computation on untrusted cloud-based quantum hardware,” in Proceedings of the 11th International Workshop on Hardware and Architectural Support for Security and Privacy , 2022, pp. 45–52
2022
-
[20]
Trustworthy comput- ing using untrusted cloud-based quantum hardware,
S. Upadhyay, R. O. Topaloglu, and S. Ghosh, “Trustworthy comput- ing using untrusted cloud-based quantum hardware,” arXiv preprint arXiv:2305.01826, 2023
2023 arXiv
-
[21]
Reverse engineering convolutional neural networks through side-channel information leaks,
W. Hua, Z. Zhang, and G. E. Suh, “Reverse engineering convolutional neural networks through side-channel information leaks,” in Proceedings of the 55th Annual Design Automation Conference , 2018, pp. 1–6
2018
-
[22]
Towards reverse-engineering black- box neural networks,
S. J. Oh, B. Schiele, and M. Fritz, “Towards reverse-engineering black- box neural networks,” Explainable AI: interpreting, explaining and visualizing deep learning , pp. 121–144, 2019
2019
-
[23]
The quantum imitation game: Reverse engi- neering of quantum machine learning models,
A. Ghosh and S. Ghosh, “The quantum imitation game: Reverse engi- neering of quantum machine learning models,” in Proceedings of the 2024 Workshop on Attacks and Solutions in Hardware Security , 2024, pp. 48–57
2024
-
[25]
Quantum computing on encrypted data,
K. A. Fisher, A. Broadbent, L. Shalm, Z. Yan, J. Lavoie, R. Prevedel, T. Jennewein, and K. J. Resch, “Quantum computing on encrypted data,” Nature communications, vol. 5, no. 1, p. 3074, 2014
2014
-
[26]
Qumos: A framework for preserving security of quantum machine learning model,
Z. Wang, J. Li, Z. Hu, B. Gage, E. Iwasawa, and W. Jiang, “Qumos: A framework for preserving security of quantum machine learning model,” in 2023 IEEE International Conference on Quantum Computing and Engineering (QCE), vol. 1. IEEE, 2023, pp. 1089–1097
2023
-
[27]
Stiq: Safeguarding training and inferencing of quantum neural networks from untrusted cloud,
S. Kundu and S. Ghosh, “Stiq: Safeguarding training and inferencing of quantum neural networks from untrusted cloud,” arXiv preprint arXiv:2405.18746, 2024
2024 arXiv
Reviewed August 9, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.