“…It is based on the First One search algorithm [26,49,55,56,35] that is a modification of Grover's search algorithm [30,22]. The procedure in different forms was discussed in several papers [18,38,9,42,35,48,51]. The main property of the subroutine is presented in the following lemma.…”