Add indexing of NLayout#14908
Conversation
|
One or more of the following people are relevant to this code:
|
Pull Request Test Coverage Report for Build 16969118917Details
💛 - Coveralls |
|
Just a naive question, in |
049d1f7 to
20cfa61
Compare
This allows `NLayout` to be indexed by `VirtualQubit` and `PhysicalQubit`, which is a shorter way of writing `VirtualQubit::to_phys` and `PhysicalQubit::to_virt`.
20cfa61 to
58ddaed
Compare
Oh, I never saw this at the time, sorry. If that change was showing up in this PR, it must have been because it was in a chain before. The PR that made the change you're talking about is #14604, which did come with a release note. |
alexanderivrii
left a comment
There was a problem hiding this comment.
Neat feature that improves ergonomics - LGTM!
This allows
NLayoutto be indexed byVirtualQubitandPhysicalQubit, which is a shorter way of writingVirtualQubit::to_physandPhysicalQubit::to_virt.