Commit 8ec62bb
quantumlib#928: Define rows of matrix explicitly (quantumlib#1089)
`synthesize_dual_basis` uses iterated `index` to infer matrix size,
which is not very readable: [issue
928](quantumlib#928). This PR
defines `n_rows` explicitly.
---------
Co-authored-by: Michael Hucka <mhucka@google.com>1 parent 4af6be8 commit 8ec62bb
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
112 | 113 | | |
113 | | - | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
117 | | - | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
121 | | - | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
0 commit comments