Open qinhui99 opened 2 weeks ago
Since this is a single qubit example, it is expected that the CPU version will be faster.
GPU executing time will be much faster if you run larger circuits with more qubit counts.
Since this is a single qubit example, it is expected that the CPU version will be faster.
GPU executing time will be much faster if you run larger circuits with more qubit counts.
No. I tested 4 qubits, the winner still was the CPU version. CPU version: 4.76 iter/s GPU version: 2.95 iter/s
I used other quantum platform such as torch-quantum, deepquantum. There are GPU version faster than CPU version.
Can you please share a minimal working example of the code you are running to benchmark with the section you are timing highlighted.
Thanks.
Yeah, pls check the mnist_torchquantum.zip.
Required prerequisites
Describe the bug
We did the performance test for hybrid_qnns.ipynb between GPU version and CPU version. Then we found GPU version is very slow and slower than CPU version. Why?
We tested both 4090 GPU and T4 GPU, got the same result.
Steps to reproduce the bug
just run the hybrid_qnns.ipynb.
Expected behavior
GPU version is faster than CPU version.
Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
Suggestions
No response