MixedSystems Module
Sector-aware symbolic utilities for mixed bosonic and fermionic systems.
This module adds explicit sector metadata to indexed ladder operators and provides canonical mixed normal ordering: 1) all fermionic operators are moved to the left of bosonic operators, 2) fermionic subsequences are normal-ordered with CAR, 3) bosonic subsequences are normal-ordered with CCR. Cross-sector swaps are treated as commuting and therefore do not introduce sign changes.
Types
| Type | Description |
|
Particle statistics sector. |
|
|
A ladder operator tagged with particle-statistics sector. |
Functions and values
| Function or value |
Description
|
Full Usage:
boson operator index
Parameters:
LadderOperatorUnit
index : uint32
Returns: IxOp<uint32, SectorLadderOperatorUnit>
|
Creates a bosonic indexed ladder operator.
|
Full Usage:
constructMixedNormalOrdered candidate
Parameters:
S<IxOp<uint32, SectorLadderOperatorUnit>>
Returns: S<IxOp<uint32, SectorLadderOperatorUnit>> option
|
Canonical mixed normal ordering for sector-tagged expressions. For each product term, this function:
|
Full Usage:
fermion operator index
Parameters:
LadderOperatorUnit
index : uint32
Returns: IxOp<uint32, SectorLadderOperatorUnit>
|
Creates a fermionic indexed ladder operator.
|
Full Usage:
isSectorBlockOrdered productTerm
Parameters:
P<IxOp<uint32, SectorLadderOperatorUnit>>
Returns: bool
|
Checks whether all fermionic operators appear before all bosonic operators.
|
Full Usage:
toSectorBlockOrder productTerm
Parameters:
P<IxOp<uint32, SectorLadderOperatorUnit>>
Returns: P<IxOp<uint32, SectorLadderOperatorUnit>>
|
Reorders a product term so that fermionic operators appear before bosonic operators. Relative order is preserved within each sector. Cross-sector swaps are assumed commuting and do not change the coefficient.
|