Commit 049d1f7
committed
Add indexing of
This allows `NLayout` to be indexed by `VirtualQubit` and
`PhysicalQubit`, which is a shorter way of writing
`VirtualQubit::to_phys` and `PhysicalQubit::to_virt`.NLayout
1 parent c501d55 commit 049d1f7
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
270 | 282 | | |
271 | 283 | | |
272 | 284 | | |
| |||
0 commit comments