Skip to content

Commit

Permalink
Katas UI review - Deutsch-Jozsa (#1696)
Browse files Browse the repository at this point in the history
Co-authored-by: Mariia Mykhailova <[email protected]>
Co-authored-by: Alex Hansen <[email protected]>
  • Loading branch information
3 people authored Jul 10, 2024
1 parent 623859b commit c417ecd
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 59 deletions.
4 changes: 2 additions & 2 deletions katas/content/deutsch_jozsa/implement_dj/solution.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Follow the algorithm as outlined in the previous section:
3. Apply the oracle. The syntax for applying the oracle is the same as for applying any other gate or operation.
4. Apply the $H$ gate to each qubit again.
5. Measure each of the qubits. If any of the measurement results is `One`, the function is balanced.
We cannot return `false` as soon as we encounter a `One` result, though, since we need to return all qubits to $\ket{0}$ state first.
Instead, we'll update the mutable variable that stores our result and continue through the rest of the loop.
You can't return `false` as soon as you encounter a `One` result, though, since you need to return all qubits to $\ket{0}$ state first.
Instead, you update the mutable variable that stores your result and continue through the rest of the loop.

@[solution]({
"id": "deutsch_jozsa__implement_dj_solution",
Expand Down
Loading

0 comments on commit c417ecd

Please sign in to comment.