yehfelareborn commented on code in PR #1179:
URL: https://github.com/apache/mahout/pull/1179#discussion_r2941504947


##########
testing/qdp/test_numpy.py:
##########
@@ -147,6 +146,255 @@ def test_encode_numpy_encoding_methods(encoding_method):
     _verify_tensor(tensor, (1, sample_size))
 
 
+# ---------------------------------------------------------------------------
+# Angle encoding tests
+# ---------------------------------------------------------------------------
+
+
+@requires_qdp
[email protected]
[email protected]("num_qubits", [1, 2, 3, 4])
+def test_encode_numpy_angle_encoding_1d(num_qubits):
+    """Angle encoding: 1D array with num_qubits angles (single sample)"""
+    from _qdp import QdpEngine
+
+    pytest.importorskip("torch")
+    if not torch.cuda.is_available():
+        pytest.skip("GPU required for QdpEngine")

Review Comment:
   I resolve this issue.thanks



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