| Literature DB >> 35571725 |
Jinfeng He1, Hai Xu1,2, Shiguang Feng1, Mingzhu Du1.
Abstract
Because of the connection constraints of quantum devices, the quantum gate cannot operate directly on nonadjacent qubits. Quantum circuit mapping transforms a logical quantum circuit to a circuit that satisfies the connection constraints by adding SWAP gates for nonadjacent qubits. Global and local heuristic reordering strategies are proposed in this paper for quantum circuit mapping over linear nearest neighbor (LNN) architectures, which are one-dimensional topology structures, to reduce the number of SWAP gates added. Experiment results show that the average improvements of the two methods are 13.19% and 15.46%, respectively. In this paper, we consider the quantum circuit mapping problem for linear nearest neighbor (LNN) architectures. We propose a global heuristic qubit reordering optimization algorithm and a local heuristic qubit reordering optimization algorithm. Compared with the other algorithm results, the average improvements of the two methods for quantum cost are 13.19% and 15.46%, respectively. The two methods apply to the realization of quantum circuit neighboring over one-dimensional quantum architectures and can be extended to algorithms that work for other quantum architectures of different topologies.Entities:
Year: 2022 PMID: 35571725 PMCID: PMC9098274 DOI: 10.1155/2022/1765955
Source DB: PubMed Journal: Comput Intell Neurosci
Figure 1Decomposition of a Toffoli gate. (a) Implementation of a Toffoli gate. (b) LNN Implementation of a Toffoli gate. (c) Optimal LNN implementation of a Toffoli gate.
Figure 2Establishing linear nearest neighbor compliance. (a) The original circuit. (b) The circuit after adding SWAP gates. (c) Optimal linear nearest neighbor compliant circuit.
Figure 3An instance by applying the GHQR algorithm in [30]. (a) 4gt11_84. (b) Swapping x0 and x2. (c) Swapping x1 and x4. (d) Swapping x1 and x3. (e) Swapping x2 and x4. (f) Adding SWAP gates.
Figure 4The result for 4gt11_84 by applying the GHQR algorithm.
Figure 5An instance by applying the LHQR algorithm. (a) The original quantum circuit. (b) g1 neighboring. (c) g4 neighboring. (d) g8 neighboring.
Figure 6An example of the LHQR algorithm. (a) g2 neighboring. (b) g3 neighboring. (c) g4 neighboring. (d) g6 neighboring.
Experimental results and comparison of the GHQR algorithm and [30].
| Benchmark | Quantum cost (QC) | Impr (%) | |
|---|---|---|---|
| [ | GHQR | ||
| 3_17_13 | 32 | 32 | 0 |
| 4_49_17 | 128 | 128 | 0 |
| 4gt10-v1_81 | 258 | 252 | 2 |
| 4gt11_84 | 25 | 13 | 48 |
| 4gt13-v1_93 | 77 | 59 | 23 |
| 4gt5_75 | 118 | 106 | 10 |
| 4mod5-v1_23 | 114 | 114 | 0 |
| 4mod7-v0_95 | 352 | 268 | 24 |
| add16_174 | 762 | 762 | 0 |
| add32_183 | 2530 | 1530 | 40 |
| add64_184 | 3066 | 3066 | 0 |
| Aj-e11_165 | 280 | 280 | 0 |
| aluv4_36 | 218 | 218 | 0 |
| cnt3-5_180 | 1457 | 1487 | -2 |
| cycle10_2_110 | 21420 | 19734 | 8 |
| decod24-v3_46 | 39 | 21 | 46 |
| ham15_108 | 14030 | 6446 | 54 |
| hwb4_52 | 107 | 77 | 28 |
| hwb9_123 | 302481 | 346365 | -15 |
| hwb6_58 | 1268 | 1238 | 2 |
| mod5adder_128 | 675 | 603 | 11 |
| rd53_135 | 702 | 690 | 2 |
| rd73_140 | 648 | 688 | -6 |
| rd84_142 | 1696 | 1402 | 17 |
| sym9_148 | 67428 | 38028 | 44 |
| urf5_158 | 667484 | 618392 | 7 |
Experimental results and comparison of the LHQR algorithm and [30].
| Benchmark | Quantum cost (QC) | Impr (%) | |
|---|---|---|---|
| [ | LHQR | ||
| 3_17_13 | 32 | 23 | 28 |
| 4_49_17 | 98 | 89 | 9 |
| 4gt10-v1_81 | 150 | 138 | 8 |
| 4gt11_84 | 22 | 19 | 14 |
| 4gt13-v1_93 | 56 | 53 | 5 |
| 4gt5_75 | 82 | 91 | −11 |
| 4mod5-v1_23 | 78 | 69 | 12 |
| 4mod7-v0_95 | 127 | 133 | −5 |
| add16_174 | 1104 | 435 | 61 |
| add32_183 | 3744 | 867 | 77 |
| add64_184 | 13632 | 1731 | 87 |
| add8_172 | 360 | 219 | 39 |
| Aj-e11_165 | 181 | 130 | 28 |
| Aluv4_36 | 113 | 125 | −11 |
| cnt3-5_180 | 731 | 623 | 15 |
| cycle10_2_110 | 8046 | 8016 | 0 |
| decod24-v3_46 | 21 | 21 | 0 |
| ham15_108 | 2627 | 2678 | −2 |
| ham7_104 | 342 | 339 | 1 |
| hwb4_52 | 65 | 62 | 5 |
| hwb6_58 | 614 | 533 | 13 |
| hwb7_62 | 13390 | 13722 | −2 |
| mod5adder_128 | 330 | 312 | 5 |
| rd73_140 | 304 | 280 | 8 |
| rd84_142 | 556 | 493 | 11 |
| sym9_148 | 20643 | 19167 | 7 |