2 Quantum - Circuit - Simulator - Based - On - FPGA
2 Quantum - Circuit - Simulator - Based - On - FPGA
SoC Platform Research Center SoC Platform Research Center SoC Platform Research Center
Seongnam-si, Korea Seongnam-si, Korea Seongnam-si, Korea
[email protected] [email protected] [email protected]
Byung-Soo Kim
Korea Electronics Technology Institute
SoC Platform Research Center
Seongnam-si, Korea
[email protected]
Abstract— The quantum computer is emerging technology (2) Our hardware can support simulation of any quantum
since it can resolve complex tasks such as factorization or search gate that represented by 2 x 2 matrix.
problem faster than classical computers. However, simulation of
the quantum computer is difficult because computational load (3) We implement various accelerating algorithm for
increases exponentially as the number of qubits used in the quantum simulation. The algorithm tries to avoid
circuit is increased. This paper proposes a hardware unnecessary multiplication and data transfer with
architecture for quantum circuit simulation. To implement external memory.
simulator smaller, our architecture operates based on a 1-input
The paper is organized as follows. In section 2, we
single gate regardless of the number of qubits used in the circuit
In addition, our architecture helps to reduce simulation time by
describes a basic theory of quantum and previous works for
skipping calculation and data transfer. The proposed quantum simulation. In section 3, we introduce our hardware
architecture is implemented on FPGA and the experimental architecture. Section 4 explains the experimental result.
results show that our architecture reduces 79.2% of the Finally, section 5 concludes the paper with the future research.
multiplication process when we simulate 20-qubit quantum
Fourier transform with a small hardware size. II. BACKGROUND
A. Basic of Quantum & Quantum Circuit
Keywords— quantum simulator, quantum circuit, quantum
computer, FPGA, QFT The main difference between conventional computer and
quantum computer is a qubit which is the atomic element of
I. INTRODUCTION the quantum computer. The entanglement and superposition
In the past years, researchers and big tech companies have are the key features of the qubit that quantum computer is
increased interest in quantum computers. This is because the superior than conventional computer. With these two feature,
quantum computer is expected to become the next game one qubit can store more information in comparison with one
changer like artificial intelligence through promising bit which can store only 0 or 1.
algorithms such as Grover’s algorithm[1] or Shor’s The state of one qubit can be expressed mathematically as
algorithm[2] that quantum computers have shown. equation (1) where α, β are complex number. These two
However, implementing real quantum computer is proved number represent the probability of measuring |0> and |1>
to be a challenging task because it requires near absolute zero each other.
temperature to control quantum computer. It makes the cost of
implementing quantum computer too expensive. Thus we 1 0
| α|0 |1 α (1)
cannot meet the demand of quantum computer for researching 0 1
quantum algorithm. For this reason, there is a field to study
To modify the state of qubit, a quantum gate is applied to
quantum simulation method using conventional computer. It
qubits. Their operations can be represented unitary matrix
mimics the characteristics of quantum in conventional
transformations by mathematically, so any gate can be
computer, thus it is used by many researchers who have
described by 2 2 matrix where N is the number of input
difficulty accessing quantum computers.
qubit for the gate. Fig. 1 is some example of Quantum gates
The simulation of quantum circuit requires tremendous and its matrix representations. Quantum circuit is made by
resource and simulation time because they grow exponentially series of gates and using this, we can solve the problem that
when the number of qubit increases. Therefore, simulation we want. Quantum circuit acts on quantum state represented
using FPGAs having inherent parallel behavior, is a good by 2 1 state vector. Each element in the state vector
choice to reduce simulation time. represent the probability of measuring qubits.
In this paper, we introduce quantum state vector simulator
using FPGA. The main contributions of this paper are
described below.
(1) We implement the quantum circuit simulator in
FPGA. Our small architecture can simulate large
qubit quantum circuit since it operates based on a 1-
input single gate. Fig. 1. Example of Quantum Gate
1910
Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY SILCHAR. Downloaded on August 26,2024 at 11:37:42 UTC from IEEE Xplore. Restrictions apply.
C. 3rd stage TABLE II. FPGA RESOURCE UTILIZATION
(4) In the future work, we will attempt to make our simulator
more faster. To do so, we will research new features for our
hardware scheme and invent a software framework for our
(5)
hardware acceleration.
(6) ACKNOWLEDGMENT
This work was supported by the Technology Innovation
IV. EXPERIMENTA RESULT Program (20000868, Development of AI 3D IC Fabrication
The proposed architecture was synthesized and emulated Process Technology using a FO Package) funded By the
in Xilinx’s Kintex UltraScale (XCKU115) FPGA platform at Ministry of Trade, Industry & Energy (MOTIE, Korea).
160MHz. To demonstrate our scheme, we simulated various
size of QFT and check the simulation time. REFERENCES
[1] GROVER, Lov K. "A fast quantum mechanical algorithm for database
TABLE I. FPGA RESOURCE UTILIZATION search." In: Proceedings of the twenty-eighth annual ACM symposium
Quantum FPGA ALUT REG on Theory of computing. 1996. p. 212-219.
DSP [2] SHOR, Peter W. "Polynomial-time algorithms for prime factorization
Circuit Device (LUT) (FF)
Intel and discrete logarithms on a quantum computer." SIAM review, 1999,
5-QFT[10] 16448 2048 736 41.2: 303-332.
Stratix IV
Intel [3] WILLE, Robert; VAN METER, Rod; NAVEH, Yehuda. "IBM’s
8-QFT[6] 12150 29462 64 Qiskit tool chain: Working with and developing for real quantum
Stratix IV
computers." In: 2019 Design, Automation & Test in Europe
Any Xilinx Conference & Exhibition (DATE). IEEE, 2019. p. 1234-1240.
19204 4027 128
(Proposed) XCKU115
[4] BROUGHTON, Michael, et al. "Tensorflow quantum: A software
The comparison of FPGA resource utilization for our framework for quantum machine learning." arXiv preprint
architecture and previous works are shown in Table I. Our arXiv:2003.02989, 2020.
architecture doesn’t store all state vectors so there are no limit [5] ZHANG, Xin, et al. The Quantum Shor Algorithm Simulated on
for the number of qubit when simulate quantum circuit. In FPGA. In: 2019 IEEE Intl Conf on Parallel & Distributed Processing
addition, our architecture just simulates an 1-input gate, the with Applications, Big Data & Cloud Computing, Sustainable
Computing & Communications, Social Computing & Networking
FPGA resource utilization isn’t changed by quantum circuit to (ISPA/BDCloud/SocialCom/SustainCom). IEEE, 2019. p. 542-546.
simulate. We use a 16-bit fixed-point precision for
[6] QIAN, Yu, et al. Efficient FPGA Emulation of Quantum Fourier
representing data, thus 32-bit is used for storing one element Transform. In: 2019 China Semiconductor Technology International
(complex number) of state vector. Conference (CSTIC). IEEE, 2019. p. 1-3.
Table II shows the ratio of skipped multiplier and [7] MAHMUD, Naveed; EL-ARABY, Esam. A scalable high-precision
and high-throughput architecture for emulation of quantum algorithms.
emulation time for n-qubit QFT circuits in our platform. The In: 2018 31st IEEE International System-on-Chip Conference (SOCC).
platform consists of FPGA implementing AMBA bus IEEE, 2018. p. 206-212.
architecture and the proposed quantum architecture, and [8] FATIMA, Aneeqa; MARKOV, Igor L. Faster Schrödinger-style
SDRAM as an external memory. The emulation time grows simulation of quantum circuits. In: 2021 IEEE International
exponentially as n increases. It’s due to state vector for n qubit Symposium on High-Performance Computer Architecture (HPCA).
IEEE, 2021. p. 194-207.
quantum circuit is 2 1.
[9] ABELLÁN, Daniel, et al. Simulating and executing circuits employing
V. CONCLUSION the quantum computing paradigm. In: Proceedings of the 2019 Summer
Simulation Conference. 2019. p. 1-12.
In this paper, we introduce an efficient quantum simulator [10] LEE, Yee Hui; KHALIL-HANI, M.; MARSONO, Muhammad N.
based on FPGA and verify it by simulating various sizes of FPGA-based quantum circuit emulation: a case study on Quantum
QFT. For supporting large quantum circuits, we propose an Fourier transform. In: 2014 International Symposium on Integrated
architecture for n-qubit quantum circuits using small 1-input Circuits (ISIC). IEEE, 2014. p. 512-515.
gate simulator. Furthermore, we divide our circuit into three [11] SILVA, Agustin; ZABALETA, Omar Gustavo. FPGA quantum
computing emulator using high level design tools. In: 2017 Eight
parts for removing unnecessary multiplications and data Argentine Symposium and Conference on Embedded Systems
transfer with external memory. (CASE). IEEE, 2017. p. 1-6
1911
Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY SILCHAR. Downloaded on August 26,2024 at 11:37:42 UTC from IEEE Xplore. Restrictions apply.