neuralqx.hilbert.u1.index package¶
U(1) indexing subpackage.
Provides concrete U(1) states_to_numbers / numbers_to_states
implementations and registers plum dispatch overloads for
neuralqx.hilbert.u1.unconstrained_core.UnconstrainedHilbertU1Core
and
neuralqx.hilbert.u1.constrained_core.ConstrainedHilbertU1Core.
- class U1UnconstrainedStateEnumerator¶
Bases:
_U1StateEnumeratorBaseEnumerator for unconstrained U(1) cores.
- class U1ConstrainedStateEnumerator¶
Bases:
_U1StateEnumeratorBaseEnumerator for constrained (gauge-fixed) U(1) cores.
- states_to_numbers(space, states, **kwargs)¶
Public wrapper: dispatch via
space.index.This overload intentionally avoids importing any concrete/abstract core classes to keep the dispatch layer independent of core module import order.
- states_to_numbers(index: neuralqx.hilbert.utils.index._abstract.HilbertStateEnumerator, space: object, states: Any, *args, **kwargs: Any) Any
Abstract fallback for
(index, core, states)dispatch.- states_to_numbers(index: neuralqx.hilbert.u1.index.enumerator.U1UnconstrainedStateEnumerator, space: neuralqx.hilbert.u1.unconstrained_core.UnconstrainedHilbertU1Core, states: Any, *args, **kwargs: Any) Any
Dispatch overload: unconstrained U(1) states -> numbers.
- states_to_numbers(index: neuralqx.hilbert.u1.index.enumerator.U1ConstrainedStateEnumerator, space: neuralqx.hilbert.u1.constrained_core.ConstrainedHilbertU1Core, states: Any, *args, **kwargs: Any) Any
Dispatch overload: constrained U(1) states -> numbers.
- Return type:
- numbers_to_states(space, numbers, **kwargs)¶
Public wrapper: dispatch via
space.index.This overload intentionally avoids importing any concrete/abstract core classes to keep the dispatch layer independent of core module import order.
- numbers_to_states(index: neuralqx.hilbert.utils.index._abstract.HilbertStateEnumerator, space: object, numbers: Any, *args, **kwargs: Any) Any
Abstract fallback for
(index, core, numbers)dispatch.- numbers_to_states(index: neuralqx.hilbert.u1.index.enumerator.U1UnconstrainedStateEnumerator, space: neuralqx.hilbert.u1.unconstrained_core.UnconstrainedHilbertU1Core, numbers: Any, *args, **kwargs: Any) Any
Dispatch overload: unconstrained U(1) numbers -> states.
- numbers_to_states(index: neuralqx.hilbert.u1.index.enumerator.U1ConstrainedStateEnumerator, space: neuralqx.hilbert.u1.constrained_core.ConstrainedHilbertU1Core, numbers: Any, *args, **kwargs: Any) Any
Dispatch overload: constrained U(1) numbers -> states.
- Return type: