400Ping commented on code in PR #902:
URL: https://github.com/apache/mahout/pull/902#discussion_r2720053029


##########
website/qumat/qdp/api/index.md:
##########
@@ -5,4 +5,131 @@ title: API Reference - QDP
 
 # API Reference
 
-<!-- TODO: Add API reference documentation for QDP -->
+Mahout QDP (Quantum Data Plane) provides GPU-accelerated quantum state 
encoding.
+It writes classical data directly into GPU memory and returns a 
DLPack-compatible
+handle for zero-copy integration with downstream frameworks.
+
+## Quickstart
+
+```python
+import qumat.qdp as qdp
+import torch
+
+engine = qdp.QdpEngine(device_id=0, precision="float32")
+qtensor = engine.encode([0.1, 0.2, 0.3, 0.4], num_qubits=2, 
encoding_method="amplitude")
+tensor = torch.utils.dlpack.from_dlpack(qtensor)  # single-use, zero-copy

Review Comment:
   done



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