![]() |
QPanda3
Supported by OriginQ
|
The following benchmark rom IBM's Qiskit benchpress. We forked the repository and added test items for pyqpanda3 to complete the relevant tests. Our test repository can be found at https://github.com/OriginQ/benchpress. We have introduced more detailed experimental content in the literature QPanda3: A High-Performance Software-Hardware Collaborative Framework for Large-Scale Quantum-Classical Computing Integration. This webpage cited important experimental results from the article.
"The Benchpress open-source benchmarking suite comprises over 1,000 different tests. These are standardized benchmarking tests designed by other members of the quantum community. For example, Benchpress compares SDKs’ abilities to generate QASMBench circuits, Feynman circuits, and Hamiltonian circuits. It also includes tests designed to test a language's ability to transpiler circuits for specific hardware, including the heavy hex architecture of IBM quantum processors and other generic qubit layouts."
— IBM Qiskit
The performance of several SDKs in circuit construction is illustrated in Figure Quantum Circuit Construct . It can be observed that QPanda3, qiskit, and cirq passed all seven test cases. For the five test cases, namely test_multi_control_circuit, test_bigint_qasm2_import, test_param_circSU2_100_build, test_clifford_build, and test_QV100_build, QPanda3 demonstrated the shortest execution time. For the test case test_param_circSU2_100_bind, QPanda3’s execution time was almost on par with qiskit, ranking as the second fastest. In the test case test_QV100_qasm2_import, although QPanda3 lagged behind qiskit, its execution time was significantly less than that of cirq and bqskit. Despite QASM not being the native intermediate representation for quantum programs in QPanda3, it still exhibited a circuit construction speed close to that of qiskit in these two test cases. This suggests that the QASM conversion tool in QPanda3 may be highly efficient, or that QPanda3’s circuit construction efficiency is so high that it can offset any inefficiencies in QASM conversion. This figure highlights the advantages of QPanda3 in circuit construction.
The Benchmarking the performance of quantum computing software literature highlights that Manipulate is a crucial metric for evaluating SDKs. As shown in Figure Manipulate , only QPanda3 and qiskit passed all four test cases. QPanda3 demonstrated the shortest execution time in three tests: test_multi_control_decompose, test_QV100_basis_change, and test_random_clifford_decompose. For the test_DTC100_twirling, QPanda3’s execution time was only slightly longer than that of qiskit, with a minimal difference between the two. This figure indicates that QPanda3 has a clear advantage in the Manipulate metric.
In our experiments, only QPanda3 and qiskit passed the majority of the test cases related to compilation. We have plotted the corresponding experimental results into multiple scatter plots, as shown in Figure Quantum Circuit Transpilation , which illustrate the differences between QPanda3 and qiskit in terms of 2Q Gate Count, 2Q Gate Depth, and compilation time for various topological structures. In each plot, the blue dashed line represents the point where the values for QPanda3 and qiskit are equal for the corresponding metric. Points above the blue dashed line indicate that the corresponding value for QPanda3 is less than that for qiskit. As observed from Figure Quantum Circuit Transpilation , for both 2Q Gate Count and 2Q Gate Depth, the majority of the scatter points are densely distributed along or very close to the blue dashed line, suggesting that the performance of QPanda3 and qiskit is essentially the same. However, regarding compilation time, all scatter points in the four subplots of Figure Quantum Circuit Transpilation are located above the blue dashed line, indicating that QPanda3 exhibits higher compilation efficiency than qiskit. This characteristic is not limited by topological structure and is effective for a large number of different circuits. Additionally, it can be observed that only a very few test cases result in compilation times exceeding 10 seconds when using QPanda3. These observations collectively demonstrate the high compilation efficiency of QPanda3.