loqs.core.instructions.patchgeometry¶
A build-time convenience for constructing multi-patch instructions.
PatchGeometry bundles the patch labels, qubit lists, seam qubit
lists, and layout name a multi-patch instruction builder needs, so a
caller types them once instead of re-typing them at every builder call
(and independently again for the corresponding "Init Patch" stack
entries). Reuses the Mapping[str, str]-style role-naming convention
patch_labels already established. Currently
used by codepack_surf17_multipatch/codepack_surf17_surgery,
the only codepacks with multi-patch instructions today, but nothing about
it is specific to those codepacks. It is a plain, static, build-time
object -- never part of a running program's state, and unrelated to
PatchLayout/PatchRelation, which exist only once a
QuantumProgram is already running.