From e0bb6adad8cea48181e481d12e38b44269140c16 Mon Sep 17 00:00:00 2001 From: Renato Mello Date: Mon, 23 Dec 2024 21:24:03 +0400 Subject: [PATCH] docstring --- src/qibo/models/encodings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qibo/models/encodings.py b/src/qibo/models/encodings.py index 9b9fa620b..355e30585 100644 --- a/src/qibo/models/encodings.py +++ b/src/qibo/models/encodings.py @@ -119,7 +119,9 @@ def phase_encoder(data, rotation: str = "RY", **kwargs): def binary_encoder(data, **kwargs): """Create circuit that encodes ``data`` in all amplitudes of the computational basis. - Data has to be normalized with respect to the Hilbert-Schmidt norm. + ``data`` has to be normalized with respect to the Hilbert-Schmidt norm. + Resulting circuit parametrizes ``data`` in Hopf coordinates in the + :math:`(2^{n} - 1)`-unit sphere. Args: data (ndarray or list): :math:`1`-dimensional array or length :math:`2^{n}`