Sumit6307 opened a new pull request, #1153: URL: https://github.com/apache/mahout/pull/1153
### Related Issues <!-- Closes #123 --> ### Changes - [x] **New Feature**: Added `ZZFeatureMap` encoding for quantum state preparation. - [x] **Optimization**: Implemented Fast Walsh-Hadamard Transform (FWT) to achieve O(n 2^n) complexity. - [x] **Flexibility**: Support for configurable repetition layers via "zz-lN" strings. - [x] **Verification**: Added testing/qdp/test_zz.py with batch and multi-layer tests. ### Why ZZFeatureMap is the industry-standard data encoding for Quantum Machine Learning (QML), enabling the mapping of classical data into higher-dimensional Hilbert spaces. Adding this to Apache Mahout's QDP backend allows researchers to execute large-scale quantum kernels with high performance on NVIDIA GPUs. ### How 1. **CUDA Kernels**: Implemented optimized phase calculation for ZZ interactions in zz.cu. 2. **Multi-layer Driver**: Created a driver that alternates between Phase + FWT stages to handle repetition layers without leaving GPU memory. 3. **Rust Interface**: Added ZzEncoder to the qdp-core encoding registry with parameterized naming support. 4. **Python API**: Exposed the feature to QdpEngine, allowing zero-copy integration with PyTorch and Jax. ## Checklist - [x] Added unit tests for all changes - [x] Verified state vector norm maintenance (equals 1.0) - [x] Updated documentation for the new encoding method -- 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]
