Commit a897b34
Fix
The row and column oracle are defined as such ([Lin Lin (2022). Ch.
6.5.](https://arxiv.org/abs/2201.08309)):
$O_c\ket{\ell}\ket{j}=\ket{c(j, \ell)}\ket{j}$, where $c(j,\ell)$ gives
the $\ell$-th non zero entry in the $j$-th column.
So indeed, in input the value of l is bounded by the number of non zero
entries in the matrix. But in output, the value of $c(j,\ell)$ is
unbounded as the $\ell$-th non zero entry can be anywhere in the column.
So the Signature of `RowColumnOracle` is incorrect and that was making
`assert_consistent_classical_action` throwing errors it should not have.
This is fixed by this PR.
Co-authored-by: Matthew Harrigan <mpharrigan@google.com>RowColumnOracle Signature (#1780)1 parent a08fbe1 commit a897b34
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | | - | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
0 commit comments