ryankert01 commented on PR #778:
URL: https://github.com/apache/mahout/pull/778#issuecomment-3709263674

   ```
   !./.venv/bin/python 
/content/mahout/qdp/qdp-python/benchmark/benchmark_latency.py --qubits 12 
--batches 20 --batch-size 8 --prefetch 4
   !./.venv/bin/python 
[/content/mahout/qdp/qdp-python/benchmark/benchmark_latency.py](https://colab.research.google.com/drive/1L9d9QkyxuH2LJb-3v8MyewfsVI3ya55B)
 --qubits 12 --batches 20 --batch-size 8 --prefetch 4
   /content/mahout/qdp/qdp-python/benchmark/benchmark_latency.py (cmd + click)
   
   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.0689 s (0.431 ms/vector)
   
   [Qiskit Initialize] Full Pipeline (DataLoader -> GPU)...
     Total Time: 19.0670 s (119.169 ms/vector)
   
   [Qiskit Statevector] Full Pipeline (DataLoader -> GPU)...
     Total Time: 0.0230 s (0.144 ms/vector)
   
   [Mahout] Full Pipeline (DataLoader -> GPU)...
     Total Time: 0.2116 s (1.322 ms/vector)
   
   ======================================================================
   LATENCY (Lower is Better)
   Samples: 160, Qubits: 12
   ======================================================================
   Qiskit Statevector      0.144 ms/vector
   PennyLane               0.431 ms/vector
   Mahout                  1.322 ms/vector
   Qiskit Initialize     119.169 ms/vector
   ----------------------------------------------------------------------
   Speedup vs PennyLane:            0.33x
   Speedup vs Qiskit Init:          90.13x
   Speedup vs Qiskit Statevec:       0.11x
   ```


-- 
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]

Reply via email to