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

   uv run python benchmark/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.0641 s (0.401 ms/vector)
   
   [Qiskit Initialize] Full Pipeline (DataLoader -> GPU)...
     Total Time: 10.5576 s (65.985 ms/vector)
   
   [Qiskit Statevector] Full Pipeline (DataLoader -> GPU)...
     Total Time: 0.0329 s (0.205 ms/vector)
   
   [Mahout] Full Pipeline (DataLoader -> GPU)...
     Total Time: 0.1763 s (1.102 ms/vector)
   
   ======================================================================
   LATENCY (Lower is Better)
   Samples: 160, Qubits: 12
   ======================================================================
   Qiskit Statevector      0.205 ms/vector
   PennyLane               0.401 ms/vector
   Mahout                  1.102 ms/vector
   Qiskit Initialize      65.985 ms/vector
   ----------------------------------------------------------------------
   Speedup vs PennyLane:            0.36x
   Speedup vs Qiskit Init:          59.89x
   Speedup vs Qiskit Statevec:       0.19x
   
   uv run python benchmark/benchmark_latency.py --qubits 18 --batches 20 
--batch-size 32 --prefetch 4
   Generating 640 samples of 18 qubits...
     Batch size   : 32
     Vector length: 262144
     Batches      : 20
     Prefetch     : 4
     Frameworks   : pennylane, qiskit-init, qiskit-statevector, mahout
     Generated 640 samples
     PennyLane/Qiskit format: 1280.00 MB
     Mahout format: 1280.00 MB
   
   ======================================================================
   DATA-TO-STATE LATENCY BENCHMARK: 18 Qubits, 640 Samples
   ======================================================================
   
   [PennyLane] Full Pipeline (DataLoader -> GPU)...
     Total Time: 3.4523 s (5.394 ms/vector)
   
   [Qiskit Initialize] Full Pipeline (DataLoader -> GPU)...
     Total Time: 227.0904 s (354.829 ms/vector)
   
   [Qiskit Statevector] Full Pipeline (DataLoader -> GPU)...
     Total Time: 3.7708 s (5.892 ms/vector)
   
   [Mahout] Full Pipeline (DataLoader -> GPU)...
     Total Time: 7.3243 s (11.444 ms/vector)
   
   ======================================================================
   LATENCY (Lower is Better)
   Samples: 640, Qubits: 18
   ======================================================================
   PennyLane               5.394 ms/vector
   Qiskit Statevector      5.892 ms/vector
   Mahout                 11.444 ms/vector
   Qiskit Initialize     354.829 ms/vector
   ----------------------------------------------------------------------
   Speedup vs PennyLane:            0.47x
   Speedup vs Qiskit Init:          31.01x
   Speedup vs Qiskit Statevec:       0.51x


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