guan404ming commented on PR #700:
URL: https://github.com/apache/mahout/pull/700#issuecomment-3626534553
```
(qdp-python) titan% python3 benchmark/benchmark_e2e_final.py --frameworks all
Generating 200 samples of 16 qubits...
Generated 200 samples
Parquet file size: 100.28 MB
======================================================================
E2E BENCHMARK: 16 Qubits, 200 Samples
======================================================================
[PennyLane] Full Pipeline (Disk -> GPU)...
IO Time: 0.3730 s
/home/gmchiu/Documents/GitHub/mahout/qdp/benchmark/benchmark_e2e_final.py:207:
UserWarning: Casting complex values to real discards the imaginary part
(Triggered internally at ../aten/src/ATen/native/Copy.cpp:301.)
state_gpu = state_cpu.to("cuda", dtype=torch.float32)
Total Time: 0.4661 s
[Qiskit] Full Pipeline (Disk -> GPU)...
IO Time: 0.3553 s
Processed 60/64 vectors...
Total Time: 40.3154 s
[Mahout] Full Pipeline (Disk -> GPU)...
Parquet->GPU (IO+Encode): 0.2692 s
DLPack conversion: 0.0001 s
Reshape & convert: 0.0026 s
Total Time: 0.2743 s
======================================================================
E2E LATENCY (Lower is Better)
Samples: 200, Qubits: 16
======================================================================
Mahout 0.2743 s
PennyLane 0.4661 s
Qiskit 40.3154 s
----------------------------------------------------------------------
Speedup vs PennyLane: 1.70x
Speedup vs Qiskit: 146.96x
======================================================================
VERIFICATION (Mahout vs PennyLane)
======================================================================
Max Probability Difference: 1.02e-18
Max Amplitude Difference: 7.55e-17
>> SUCCESS: Quantum States Match!
======================================================================
VERIFICATION (Mahout vs Qiskit)
======================================================================
Max Probability Difference: 4.94e-12
Max Amplitude Difference: 2.33e-10
>> SUCCESS: Quantum States Match!
======================================================================
VERIFICATION (PennyLane vs Qiskit)
======================================================================
Max Probability Difference: 4.94e-12
Max Amplitude Difference: 2.33e-10
>> SUCCESS: Quantum States Match!
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]