Skip to content

Commit

Permalink
ket fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mpharrigan committed Aug 16, 2023
1 parent a13fdeb commit d325ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qualtran/bloqs/comparison_gates.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"outputs": [],
"source": [
"def equality_oracle_quantum_classical(B: int, A: Sequence[cirq.Qid], z: cirq.Qid) -> cirq.OP_TREE:\n",
" # Returns a decomposition of the oracle O_B |A>z> = |A>|z^(A == B)> in only 4n T operations.\n",
" # Returns a decomposition of the oracle O_B |A>|z> = |A>|z^(A == B)> in only 4n T operations.\n",
" bits = list(reversed([(B >> i) & 1 for i in range(len(A))]))\n",
"\n",
" ancilla = cirq.NamedQubit.range(len(bits) - 1, prefix='ancilla')\n",
Expand Down

0 comments on commit d325ac7

Please sign in to comment.