English

The Subgraph Isomorphism Problem for Port Graphs and Quantum Circuits

Quantum Physics 2024-02-22 v2 Computational Complexity Combinatorics

Abstract

We study a variant of the subgraph isomorphism problem that is of high interest to the quantum computing community. Our results give an algorithm to perform pattern matching in quantum circuits for many patterns simultaneously, independently of the number of patterns. After a pre-computation step in which the patterns are compiled into a decision tree, the running time is linear in the size of the input quantum circuit. More generally, we consider connected port graphs, in which every edge ee incident to vv has a label Lv(e)L_v(e) unique in vv. Jiang and Bunke showed that the subgraph isomorphism problem HGH \subseteq G for such graphs can be solved in time O(V(G)V(H))O(|V(G)| \cdot |V(H)|). We show that if in addition the graphs are directed acyclic, then the subgraph isomorphism problem can be solved for an unbounded number of patterns simultaneously. We enumerate all mm pattern matches in time O(P)P+3/2V(G)+O(m)O(P)^{P+3/2} \cdot |V(G)| + O(m), where PP is the number of vertices of the largest pattern. In the case of quantum circuits, we can express the bound obtained in terms of the maximum number of qubits NN and depth δ\delta of the patterns : O(N)N+1/2δlogδV(G)+O(m)O(N)^{N + 1/2} \cdot \delta \log \delta \cdot |V(G)| + O(m).

Keywords

Cite

@article{arxiv.2302.06717,
  title  = {The Subgraph Isomorphism Problem for Port Graphs and Quantum Circuits},
  author = {Luca Mondada and Pablo Andrés-Martínez},
  journal= {arXiv preprint arXiv:2302.06717},
  year   = {2024}
}

Comments

The main bound of thm 1 is asymptotically very close to previous work, significantly reducing the novelty and motivation for this work. A new approach to this problem is presented in 2402.13065

R2 v1 2026-06-28T08:39:19.616Z