guan404ming commented on PR #778:
URL: https://github.com/apache/mahout/pull/778#issuecomment-3709841342
```
(qdp-python) titan% uv run python benchmark_latency.py --qubits 12 --batches
20 --batch-size 8 --prefetch 4
Generating 160 samples of 12 qubits...
Batch size : 8
Vector length: 4096
Batches : 20
Prefetch : 4
Frameworks : pennylane, qiskit-init, qiskit-statevector, mahout
Generated 160 samples
PennyLane/Qiskit format: 5.00 MB
Mahout format: 5.00 MB
======================================================================
DATA-TO-STATE LATENCY BENCHMARK: 12 Qubits, 160 Samples
======================================================================
[PennyLane] Full Pipeline (DataLoader -> GPU)...
Total Time: 0.0260 s (0.162 ms/vector)
[Qiskit Initialize] Full Pipeline (DataLoader -> GPU)...
Total Time: 11.2866 s (70.542 ms/vector)
[Qiskit Statevector] Full Pipeline (DataLoader -> GPU)...
Total Time: 0.0182 s (0.114 ms/vector)
[Mahout] Full Pipeline (DataLoader -> GPU)...
Total Time: 0.0494 s (0.309 ms/vector)
======================================================================
LATENCY (Lower is Better)
Samples: 160, Qubits: 12
======================================================================
Qiskit Statevector 0.114 ms/vector
PennyLane 0.162 ms/vector
Mahout 0.309 ms/vector
Qiskit Initialize 70.542 ms/vector
----------------------------------------------------------------------
Speedup vs PennyLane: 0.53x
Speedup vs Qiskit Init: 228.53x
Speedup vs Qiskit Statevec: 0.37x
```
--
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]