Skip to content

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Dec 23, 2024
1 parent efecd8f commit e0bb6ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qibo/models/encodings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit e0bb6ad

Please sign in to comment.