Learning the quantum algorithm for state overlap
Open accessThe DOI matches its Crossref record; 29 of the 30 references it cites were found in a registry or an index.
Abstract
Short-depth algorithms are crucial for reducing computational error on near-term quantum computers, for which decoherence and gate infidelity remain important issues. Here we present a machine-learning approach for discovering such algorithms. We apply our method to a ubiquitous primitive: computing the overlap between two quantum states ρ and σ . The standard algorithm for this task, known as the Swap Test, is used in many applications such as quantum support vector machines, and, when specialized to ρ = σ , quantifies the Renyi entanglement. Here, we find algorithms that have shorter depths than the Swap Test, including one that has a constant depth (independent of problem size). Furthermore, we apply our approach to the hardware-specific connectivity and gate sets used by Rigetti's and IBM's quantum computers and demonstrate that the shorter algorithms that we derive significantly reduce the error—compared to the Swap Test—on these computers.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Figures

![Figure 2 SwapTestcircuits. ( A ) Thecanonical Swap Test circuit. H indicates the Hadamard gate. ( B ) TheSwapTestcircuit adapted for IBM ' s fi ve-qubit quantum computer, constructed by decomposing controlled-swap into the Toffoli gate, via [ 34, 35 ] , and then manually eliminating gates that had no effect on the output. T is the π / 8 phase gate. ( C ) Thestructure of a Swap Test circuit, showing the locations of the one-qubit gates and controlledZ gates, constructed automatically by Rigetti ' s compiler for their 19-qubit quantumcomputer. Appendix Agives the full speci fi cation of that circuit.](https://figures.cochat.ai/paper-figures/7576f8f52bb8415b92c6be44d4d0c5ec/learning-the-quantum-algorithm-for-state-overlap-figure-2.png)




![Figure 7 Equivalence between our ABA and BBA. The two-qubit measurement and classical post-processing in the BBA can be converted to a Toffoli gate with an ancilla as the target followed by a measurement on the ancilla. This takes us from circuit ( A ) to circuit ( B ) . Inserting into circuit ( B ) the optimal decomposition of the Toffoli gate from [ 35 ] gives circuit ( C ) . Finally one does three simpli fi cations of this circuit to obtain the ABA, indicated by the dashed boxes in ( C ) . Namely, the fi rst boxed CNOT in ( C ) has trivial action and hence can be removed. The second boxed CNOT in ( C ) can be fl ipped such that the ancilla is the control qubit, which introduces some Hadamards. One of these Hadamards cancels with the fi rst Hadamard in ( C ) , and two others combine with T and † T to make the † U and U shownin fi gure 5 ( A ) . Finally the fi ve gates enclosed in the last dashed box in ( C ) have no effect on the measurement and hence can be removed.](https://figures.cochat.ai/paper-figures/59f326798de04701827952e632cf6be5/learning-the-quantum-algorithm-for-state-overlap-figure-7.png)




Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Surface codes: Towards practical large-scale quantum computation
Fowler, A. G., Mariantoni, M., Martinis, J. M., & Cleland, A. N. (2012) · Physical Review A · doi:10.1103/physreva.86.032324 · Cited by 3,059
Quantum Support Vector Machine for Big Data Classification
Rebentrost, P., Mohseni, M., & Lloyd, S. (2014) · Physical Review Letters · doi:10.1103/physrevlett.113.130503 · Cited by 1,951 · cited 1×
“In quantum supervised learning [30, 31], which subsumes quantum support vector machines [32], the Swap Test is used to assign each data vector to a cluster.”
MethodKhaneja, N., Reiss, T., Kehlet, C., Schulte-Herbrüggen, T., & Glaser, S. J. (2005) · Journal of Magnetic Resonance · doi:10.1016/j.jmr.2004.11.004 · Cited by 1,854
Mitarai, K., Negoro, M., Kitagawa, M., & Fujii, K. (2018) · Physical Review A · doi:10.1103/physreva.98.032309 · Cited by 1,639 · cited 1×
“The circuit is then trained to perform a given task by tuning these parameters [6, 7].”
MethodBuhrman, H., Cleve, R., Watrous, J., & de Wolf, R. (2001) · Physical Review Letters · doi:10.1103/physrevlett.87.167902 · Cited by 1,190
Quantum algorithms for supervised and unsupervised machine learning
Lloyd, S., Mohseni, M., & Rebentrost, P. (2013) · arXiv · doi:10.48550/arxiv.1307.0411 · Cited by 542 · cited 1×
“In quantum supervised learning [30, 31], which subsumes quantum support vector machines [32], the Swap Test is used to assign each data vector to a cluster.”
MethodA blueprint for demonstrating quantum supremacy with superconducting qubits
Neill, C., Roushan, P., Kechedzhi, K., Boixo, S., Isakov, S. V., Smelyanskiy, V., Megrant, A., Chiaro, B., Dunsworth, A., Arya, K., et al. (2018) · Science · doi:10.1126/science.aao4309 · Cited by 458 · cited 1×
“Quantum supremacy [1] may be coming soon [2].”
BackgroundA generative modeling approach for benchmarking and training shallow quantum circuits
Benedetti, M., Garcia-Pintos, D., Perdomo, O., Leyton-Ortega, V., Nam, Y., & Perdomo-Ortiz, A. (2019) · npj Quantum Information · doi:10.1038/s41534-019-0157-8 · Cited by 379 · cited 2×
“This motivates the idea of an automated approach for discovering and optimizing quantum algorithms [6–19].”
MethodOpen Quantum Assembly Language
Cross, A. W., Bishop, L. S., Smolin, J. A., & Gambetta, J. M. (2017) · arXiv · doi:10.48550/arxiv.1707.03429 · Cited by 310 · cited 1×
“Figure 2(B) and (C) respectively show decompositions of the Swap Test for IBM’s and Rigetti’s quantum computers [28, 29].”
MethodQuantum computing and the entanglement frontier
Preskill, J. (2012) · arXiv · doi:10.48550/arxiv.1203.5813 · Cited by 308 · cited 1×
“Quantum supremacy [1] may be coming soon [2].”
Background
Research works printed but not linked: 6
- Ball P 2018 The era of quantum computing is here. Outlook: cloudy Quanta Mag. [available at: http://quantamagazine.org/the-era- of-quantum-computing-is-here-outlook-cloudy-20180124/]
- Khatri S et al 2018 Quantum-assisted quantum compiling arXiv:1807.00800 · arXiv
- Hachtel G D and Somenzi F 1996 Logic Synthesis and Verification Algorithms (Boston, MA: Kluwer)
- Linke N M et al 2017 Measuring the Renyi entropy of a two-site Fermi-Hubbard model on a trapped ion quantum computer arXiv:1712.08581 · arXiv
- Smith R S, Curtis M J and Zeng W J 2016 A practical quantum instruction set architecture arXiv:1608.03355 · arXiv
- Wiebe N, Kapoor A and Svore K 2014 Quantum algorithms for nearest-neighbor methods for supervised and unsupervised learning Quantum Inf. Comput. 15 0318-58
Cited by
Variational quantum algorithms
Cerezo, M., Arrasmith, A., Babbush, R., Benjamin, S. C., Endo, S., Fujii, K., McClean, J. R., Mitarai, K., Yuan, X., Cincio, L., et al. (2021) · Nature Reviews Physics · doi:10.1038/s42254-021-00348-9 · Cited by 3,385
“The first term here is evaluated as in VQE, while the second term can be obtained by computing the state overlap between |ψ̃G〉 and |ψ(θ)〉 [91, 92].”
BackgroundSelf-citationSupervised learning with quantum-enhanced feature spaces
Havlíček, V., Córcoles, A. D., Temme, K., Harrow, A. W., Kandala, A., Chow, J. M., & Gambetta, J. M. (2019) · Nature · doi:10.1038/s41586-019-0980-2 · Cited by 2,572
“If only the value of the fidelity is needed, as is the case for our algorithm, the authors propose, c.f. [27] section III.”
MethodQuantum computational chemistry
McArdle, S., Endo, S., Aspuru-Guzik, A., Benjamin, S. C., & Yuan, X. (2020) · Reviews of Modern Physics · doi:10.1103/revmodphys.92.015003 · Cited by 1,621
Parameterized quantum circuits as machine learning models
Benedetti, M., Lloyd, E., Sack, S., & Fiorentini, M. (2019) · Quantum Science and Technology · doi:10.1088/2058-9565/ab4eb5 · Cited by 1,144
“Cincio et al. [90] train circuits to implement the SWAP test (see Fig.”
MethodNoise-Induced Barren Plateaus in Variational Quantum Algorithms
Wang, S., Fontana, E., Cerezo, M., Sharma, K., Sone, A., Cincio, L., & Coles, P. J. (2020) · arXiv · doi:10.48550/arxiv.2007.14384 · Cited by 791
Self-citation
Metadata
- Authors
- Cincio, L., Subaşı, Y., Sornborger, A. T., & Coles, P. J.
- Affiliations
- Los Alamos National Laboratory (US)
- Corresponding author
- Cincio, Lukasz
- ORCID
- Subaşı, Yiğit
- Venue
- New Journal of Physics
- Publisher
- IOP Publishing
- Published
- 2018-11-15
- Volume
- 20
- Issue
- 11
- Pages
- 113022
- ISSN
- 1367-2630 (ISSN-L)
- OpenAlex
- W2790264742
- Cited by
- 282
- References
- 24
- Citations by year
- 2026: 20 · 2025: 26 · 2024: 38 · 2023: 60 · 2022: 40 · 2021: 47 · 2020: 22 · 2019: 25 · 2018: 4
- FWCI
- 13.81
- Type
- journal article
- Language
- en
- Open access
- gold
- doi.org
- Licence
- cc-by
- iopscience.iop.org/info/page/text-and-data-mining (tdm)
- creativecommons.org/licenses/by/3.0/ (vor)
- Locations
- New Journal of Physics (publishedVersion, cc-by)
- arXiv (Cornell University) (submittedVersion)
- DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion)
- OSTI OAI (U.S. Department of Energy Office of Scientific and Technical Information) (submittedVersion)
- arXiv (Cornell University)
- Funders
- U.S. Department of Energy (J. Robert Oppenheimer fellowship)
- Los Alamos National Laboratory (Beyond Moore’s Law project, LDRD program)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Quantum Computing Algorithms and Architecture
- Physical Sciences › Physics and Astronomy › Atomic and Molecular Physics, and Optics › Quantum Information and Cryptography
- Physical Sciences › Physics and Astronomy › Atomic and Molecular Physics, and Optics › Quantum many-body systems
- Keywords
- swap test, quantum support vector machine, near-term quantum devices, gate infidelity, decoherence
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Learning the quantum algorithm for state overlap. https://app.cochat.ai/papers/10.1088/1367-2630/aae94a
- The paper
- Cincio, L., Subaşı, Y., Sornborger, A. T., & Coles, P. J. (2018). Learning the quantum algorithm for state overlap. New Journal of Physics. https://doi.org/10.1088/1367-2630/aae94a
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.