Skip to content

Commit 9f8e725

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 84d5ce8 commit 9f8e725

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/qibo/models/encodings.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -879,18 +879,18 @@ def _ehrlich_algorithm(initial_string, return_indices: bool = True):
879879
Based on the Gray code called Ehrlich algorithm. For more details, please see Ref. [1].
880880
881881
Args:
882-
initial_string (ndarray): initial bitstring as an :math:`1`-dimensional array
882+
initial_string (ndarray): initial bitstring as an :math:`1`-dimensional array
883883
of size :math:`n`. All ones in the bitstring need to be consecutive.
884-
For instance, for :math:`n = 6` and :math:`k = 2`, the bistrings
884+
For instance, for :math:`n = 6` and :math:`k = 2`, the bistrings
885885
:math:`000011` and :math:`001100` are examples of acceptable inputs.
886-
In contrast, :math:`001001` is not an acceptable input.
887-
return_indices (bool, optional): if ``True``, returns the list of indices of
888-
qubits that act like controls and targets of the circuit to be created.
886+
In contrast, :math:`001001` is not an acceptable input.
887+
return_indices (bool, optional): if ``True``, returns the list of indices of
888+
qubits that act like controls and targets of the circuit to be created.
889889
Defaults to ``True``.
890890
891891
Returns:
892-
list or tuple(list, list): If ``return_indices=False``, returns list containing
893-
sequence of bistrings in the order generated by the Gray code.
892+
list or tuple(list, list): If ``return_indices=False``, returns list containing
893+
sequence of bistrings in the order generated by the Gray code.
894894
If ``return_indices=True`` returns tuple with the aforementioned list and the list
895895
of control anf target qubits of gates to be implemented based on the sequence of
896896
bitstrings.

0 commit comments

Comments
 (0)