Skip to main content
KetQat

Appearance

Theorem · advanced

Hardness of circuit extraction from ZX diagrams

Turning a ZX diagram that denotes a unitary back into a quantum circuit of comparable size is

Peer-reviewed resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Given a ZX diagram promised to denote a unitary map, producing a quantum circuit of polynomially related size that implements it is #P\#\mathsf{P}-hard, and hence at least as hard as strong simulation of quantum circuits (de Beaudrap, Kissinger and van de Wetering). The same paper gives a second result that does not depend on the output being a circuit: an oracle that takes such a diagram and samples from the output distribution of the computation it describes would solve NP\mathsf{NP}-complete problems with efficient randomised algorithms.

The positive side: if the diagram's underlying graph has a generalised flow, a deterministic extraction algorithm exists (Duncan, Kissinger, Perdrix and van de Wetering), and Backens et al. extend extraction to further classes of diagrams. Rewrite strategies that preserve such a flow therefore always return a circuit.

Holds when

  • Input is an arbitrary ZX diagram promised to denote a unitary; the output must be a circuit of size polynomial in the diagram.
  • Worst case; restricted classes of diagrams (for example those with generalised flow) have efficient extraction.
Builds on
Part of
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Niel de Beaudrap, Aleks Kissinger, John van de Wetering (2022). Circuit extraction for ZX-diagrams can be #P-hard. 49th International Colloquium on Automata, Languages, and Programming (ICALP 2022), LIPIcs 229, 119:1-119:19. doi:10.4230/LIPIcs.ICALP.2022.119arXiv:2202.09194
  2. Ross Duncan, Aleks Kissinger, Simon Perdrix, John van de Wetering (2020). Graph-theoretic simplification of quantum circuits with the ZX-calculus. Quantum 4, 279. doi:10.22331/q-2020-06-04-279arXiv:1902.03178
  3. Miriam Backens, Hector Miller-Bakewell, Giovanni de Felice, … John van de Wetering (2021). There and back again: A circuit extraction tale. Quantum 5, 421. doi:10.22331/q-2021-03-25-421arXiv:2003.01664

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass with notes · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Hardness statements compared with de Beaudrap, Kissinger and van de Wetering, arXiv 2202.09194 (abstract and Section 1: #P-hardness of circuit extraction, at least as hard as strong simulation; representation-agnostic sampling result for NP-complete problems); positive results compared with the abstracts of Duncan et al., arXiv 1902.03178 (gflow gives deterministic extraction) and Backens et al., arXiv 2003.01664 (extraction for gflow with measurements in all three planes). DOIs resolved (Crossref for the Quantum papers, doi.org to Dagstuhl for the ICALP paper).

    The sentence on the sampling result said 'in any representation', which could be read as applying to the input; the paper's point is that the result does not depend on the output being a circuit. Reworded that sentence.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision 404b55953f05b504. Source file knowledge/records/theorem/zx-circuit-extraction-is-sharp-p-hard.md in the content repository (readable there once it is public).