quchip.utils¶
Physical constants and shared utilities.
- quchip.utils.auto_label(prefix)[source]¶
Return the next
"{prefix}_{n}"label and advance the per-prefix counter.
- quchip.utils.reset_label_counters()[source]¶
Reset every auto-label counter to zero.
Intended for test fixtures — tests rely on deterministic labels, and the module-level counter dict is otherwise process-global.
- Return type:
None
- quchip.utils.resolve_label(obj)[source]¶
Return a label string from either a string or a labeled component.
Used wherever quchip’s public API accepts “component or its label” interchangeably.
Modules
Physical constants in the quchip |
|
Tracer-detection and array-namespace dispatch helpers shared across quchip. |
|
Shared auto-labeling and label resolution for quchip components. |
|
Shared subclass-registry mixin for serializable quchip components. |
|
StateVersioned — shared mutation-tracking / cache-invalidation mixin. |