OriginQ / QPanda-2

QPanda 2 is an open source quantum computing framework developed by OriginQC that can be used to build, run, and optimize quantum algorithms.
https://originqc.com.cn/en/quantum_soft.html?type=qpanda&lv2id=43&lv3id=72
Apache License 2.0
1.15k stars 92 forks source link

How to set up max Qubit? #228

Closed WeileiZeng closed 2 months ago

WeileiZeng commented 1 year ago

测试了一下,最多29个qubit。内存冗余的情况下,如何增加这个数量?

allocateQubits qubitNumber > maxQubit
ArrowYL commented 2 months ago

如果你使用的是C++ ,

CPUQVM simulator;
simulator.setConfigure({ 72,72 });
simulator.init();

如果你使用的是python ,

machine = pq.CPUQVM()
machine.init_qvm()
machine.set_configure(72,72)
WeileiZeng commented 2 months ago

Thanks!