softwareQ Inc., Kitchener ON, Canada.
Institute for Quantum Computing, University of Waterloo, Waterloo ON, Canada.
PLoS One. 2018 Dec 10;13(12):e0208073. doi: 10.1371/journal.pone.0208073. eCollection 2018.
Quantum++ is a modern general-purpose multi-threaded quantum computing library written in C++11 and composed solely of header files. The library is not restricted to qubit systems or specific quantum information processing tasks, being capable of simulating arbitrary quantum processes. The main design factors taken in consideration were the ease of use, portability, and performance. The library's simulation capabilities are only restricted by the amount of available physical memory. On a typical machine (Intel i5 8Gb RAM) Quantum++ can successfully simulate the evolution of 25 qubits in a pure state or of 12 qubits in a mixed state reasonably fast. The library also includes support for classical reversible logic, being able to simulate classical reversible operations on billions of bits. This latter feature may be useful in testing quantum circuits composed solely of Toffoli gates, such as certain arithmetic circuits.
Quantum++ 是一个用 C++11 编写的现代通用多线程量子计算库,仅由头文件组成。该库不受量子比特系统或特定量子信息处理任务的限制,能够模拟任意量子过程。在设计时主要考虑了易用性、可移植性和性能。库的模拟能力仅受可用物理内存量的限制。在典型机器(Intel i5 8Gb RAM)上,Quantum++ 可以成功地模拟 25 个纯态量子比特或 12 个混合态量子比特的演化,速度相当快。该库还包括对经典可逆逻辑的支持,能够模拟数亿位的经典可逆操作。这一特性在测试仅由 Toffoli 门组成的量子电路(例如某些算术电路)时可能很有用。