PySparQ.pysparq.register_layout¶
Logical registers backed by multiple native words, without truncating high bits.
The C++ machine-word ABI stays intact. Every bit operation still executes on the real sparse-state backend; logical values are reconstructed as Python ints.
Attributes¶
Classes¶
Own logical register allocations in one native SparseState. |
Functions¶
|
Resolve one logical register to little-endian native bit coordinates. |
Module Contents¶
- class PySparQ.pysparq.register_layout.RegisterLayout(state: Any)[源代码]¶
Own logical register allocations in one native SparseState.
addreturns bit coordinates accepted by native gate operators.valuereads a complete logical word from a basis state, including every high word. Names must be distinct within the process-global native register namespace.