Figure 1.

Figure 2.

Figure 3.

Figure 4.

Figure 5.

Figure 6.

Figure 7.

Figure 8.

Figure A1.

Figure A2.

Figure A3.

Figure A4.

Figure A5.

The table presents the required resources for the QSM algorithms, including T-count (the number of T gates), T-depth (the depth of T gates), CNOT-count (the number of CNOT gates), and Qubit-count (the number of qubits)_ Here, N represents the size of the database to be searched, and M represents the size of the pattern_ For the comparison, we assume that N1/2 Grover iterations are implemented_
| Source | Ref. [4] | This Work |
|---|---|---|
| T-count | 14N3/2 log2 N – 14N3/2 + 7N log2 N – 7N + 8N1/2 log2 N + N1/2(8M – 20) + 7 = 14N3/2 log2 N – O(N3/2) | 8N3/2 log2 N – 10N3/2 + 4N log2 N – 4N + 8N1/2 log2 N + N1/2(8M – 26) + 1 = 8N3/2 log2 N – O(N3/2) |
| T-depth | ||
| CONT-count | 16N3/2 log2 N – 14N3/2 + 7N log2 N – 7N + 10N1/2 log2 N + N1/2(8M – 10) + M + 7 = 16N3/2 log2 N – O(N3/2) | 10N3/2 log2 N – 10N3/2 + 5N log2 N – 5N + 6N1/2 log2 N + N1/2(8M– 14) + M + 5 = 10N3/2 log2 N – O(N3/2) |
| Qubit-count | N + log2 N + M |