You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "rich7420 (via GitHub)" <gi...@apache.org> on 2025/12/08 01:18:32 UTC

[PR] [QDP] [Benchmark] Add a End-to-End benchmark to compare with speed [mahout]

rich7420 opened a new pull request, #697:
URL: https://github.com/apache/mahout/pull/697

   ### Purpose of PR
   <!-- Describe what this PR does. -->
   Add a End-to-End benchmark and Compare QDP,pennylane and qiskit with speed.
   
   ### Related Issues or PRs
   <!-- Add links to related issues or PRs. -->
   <!-- - Closes #123  -->
   <!-- - Related to #123   -->
   Closes #695 
   
   ### Changes Made
   <!-- Please mark one with an "x"   -->
   - [ ] Bug fix
   - [ ] New feature
   - [ ] Refactoring
   - [ ] Documentation
   - [x] Test
   - [ ] CI/CD pipeline
   - [ ] Other
   
   ### Breaking Changes
   <!-- Does this PR introduce a breaking change? -->
   - [ ] Yes
   - [x] No
   
   ### Checklist
   <!-- Please mark each item with an "x" when complete -->
   <!-- If not all items are complete, please open this as a **Draft PR**.
   Once all requirements are met, mark as ready for review. -->
   
   - [ ] Added or updated unit tests for all changes
   - [ ] Added or updated documentation for all changes
   - [x] Successfully built and ran all unit tests or manual tests locally
   - [ ] PR title follows "MAHOUT-XXX: Brief Description" format (if related to an issue)
   - [ ] Code follows ASF guidelines
   


-- 
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: dev-unsubscribe@mahout.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [QDP] [Benchmark] Add a End-to-End benchmark to compare with speed [mahout]

Posted by "guan404ming (via GitHub)" <gi...@apache.org>.
guan404ming commented on PR #697:
URL: https://github.com/apache/mahout/pull/697#issuecomment-3625417806

   ```
   Generating 200 samples of 16 qubits...
     Generated 200 samples
     PennyLane/Qiskit format: 100.28 MB
     Mahout format: 125.08 MB
   
   ======================================================================
   E2E BENCHMARK: 16 Qubits, 200 Samples
   ======================================================================
   
   [PennyLane] Full Pipeline (Disk -> GPU)...
     IO Time: 0.3517 s
   /home/gmchiu/Documents/GitHub/mahout/qdp/benchmark/benchmark_e2e_final.py:212: 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.4536 s
   
   [Qiskit] Full Pipeline (Disk -> GPU)...
     IO Time: 0.3288 s
       Processed 60/64 vectors...
     Total Time: 40.2632 s
   
   [Mahout] Full Pipeline (Disk -> GPU)...
     IO + Encode Time: 0.6726 s
     Total Time: 0.6733 s
   
   ======================================================================
   E2E LATENCY (Lower is Better)
   Samples: 200, Qubits: 16
   ======================================================================
   PennyLane        0.4536 s
   Mahout           0.6733 s
   Qiskit          40.2632 s
   ----------------------------------------------------------------------
   Speedup vs PennyLane:       0.67x
   Speedup vs Qiskit:         59.80x
   ```


-- 
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: dev-unsubscribe@mahout.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [QDP] [Benchmark] Add a End-to-End benchmark to compare with speed [mahout]

Posted by "ryankert01 (via GitHub)" <gi...@apache.org>.
ryankert01 commented on PR #697:
URL: https://github.com/apache/mahout/pull/697#issuecomment-3624364041

   My result:
   ```
   Generating 200 samples of 16 qubits...
     Generated 200 samples
     PennyLane/Qiskit format: 100.28 MB
     Mahout format: 125.08 MB
   
   ======================================================================
   E2E BENCHMARK: 16 Qubits, 200 Samples
   ======================================================================
   
   [PennyLane] Full Pipeline (Disk -> GPU)...
     IO Time: 0.3130 s
   /workspace/qdp/benchmark/benchmark_e2e_final.py:212: 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.4093 s
   
   [Qiskit] Full Pipeline (Disk -> GPU)...
     IO Time: 0.2456 s
       Processed 60/64 vectors...
     Total Time: 15.2480 s
   
   [Mahout] Full Pipeline (Disk -> GPU)...
     IO + Encode Time: 1.8030 s
     Total Time: 1.8060 s
   
   ======================================================================
   E2E LATENCY (Lower is Better)
   Samples: 200, Qubits: 16
   ======================================================================
   PennyLane        0.4093 s
   Mahout           1.8060 s
   Qiskit          15.2480 s
   ----------------------------------------------------------------------
   Speedup vs PennyLane:       0.23x
   Speedup vs Qiskit:          8.44x
   ```


-- 
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: dev-unsubscribe@mahout.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org