feat(deep_causality_topology): Added Lattice Gauge Field #448
feat(deep_causality_topology): Added Lattice Gauge Field #448marvin-hansen merged 25 commits intodeepcausality-rs:mainfrom
Conversation
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…e Field. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…ce Gauge Field. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…tice Gauge Field. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…Lattice Gauge Field. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…Lattice Gauge Field. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…eld impl. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
PR Compliance Guide 🔍(Compliance updated until commit 875bbfa)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit 8d031c9
Compliance check up to commit c4bb8c9
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #448 +/- ##
==========================================
- Coverage 93.40% 93.35% -0.05%
==========================================
Files 830 853 +23
Lines 36951 38384 +1433
==========================================
+ Hits 34513 35835 +1322
- Misses 2438 2549 +111 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
PR Code Suggestions ✨Latest suggestions up to 0792607
Previous suggestions✅ Suggestions up to commit 875bbfa
✅ Suggestions up to commit d7f541b
✅ Suggestions up to commit d7f541b
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…s and fixes. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
…s and fixes. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
… and fixes. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
… and fixes. Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
|
Persistent suggestions updated to latest commit 0792607 |
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
User description
Describe your changes
Issue ticket number and link
Code checklist before requesting a review
For details on make, please see BUILD.md
Note: The CI runs all of the above and fixing things before they hit CI speeds
up the review and merge process. Thank you.
PR Type
Enhancement, Tests, Documentation
Description
LatticeGaugeField<G, D, T>andLinkVariable<G, T>types for discrete lattice gauge theorytry_find_t0GaugeGrouptrait to traits module, addedmatrix_dim()method to traitLinkVariableErrorandLatticeGaugeErrorvariants with proper error propagationDiagram Walkthrough
File Walkthrough
7 files
lattice_gauge_field_tests.rs
Comprehensive LatticeGaugeField test suite with 40+ test casesdeep_causality_topology/tests/types/gauge/gauge_field_lattice/lattice_gauge_field_tests.rs
LatticeGaugeFieldwith 541 linescovering constructors, getters, plaquettes, Wilson action, and Monte
Carlo methods
access and modification
transformations, and gradient flow operations
and scale setting via
try_find_t0groups_tests.rs
Gauge group trait implementations and structure constant testsdeep_causality_topology/tests/types/gauge/gauge_groups/groups_tests.rs
U1,SU2,SU3,Electroweak,StandardModel,Lorentz)dimensions, and structure constants
hash implementations
rotation-boost, and boost-boost commutators
link_variable_tests.rs
LinkVariable operations and SU(N) projection test coveragedeep_causality_topology/tests/types/gauge/link_variable/link_variable_tests.rs
LinkVariabletype covering constructors,matrix operations, and SU(N) projection
multiplication, addition, scaling), and trace computations
link variable generation
numerical errors
hkt_lattice_gauge_tests.rs
HKT witness tests for lattice gauge field operationsdeep_causality_topology/tests/extensions/hkt_lattice_gauge_tests.rs
fields
LatticeGaugeFieldWitnessmod.rs
New gauge test module organizationdeep_causality_topology/tests/types/gauge/mod.rs
link_variable
mod.rs
Gauge field test module organizationdeep_causality_topology/tests/types/gauge/gauge_field/mod.rs
#[cfg(test)]attribute to gauge field test modulesmod.rs
New lattice gauge field test moduledeep_causality_topology/tests/types/gauge/gauge_field_lattice/mod.rs
35 files
ops_wilson.rs
Wilson action and loop observables implementationdeep_causality_topology/src/types/gauge/gauge_field_lattice/ops_wilson.rs
calculation
boundary wrapping
Polyakov loop computation
physics interpretation
ops.rs
LinkVariable matrix operations and SU(N) projectiondeep_causality_topology/src/types/gauge/link_variable/ops.rs
LinkVariable: Hermitianconjugate (
dagger), multiplication, addition, and scalingdecomposition
try_*) and convenience methods for alloperations
hkt_lattice_gauge.rs
HKT witness and functional programming abstractions for gauge fieldsdeep_causality_topology/src/extensions/hkt_gauge/hkt_lattice_gauge.rs
LatticeGaugeFieldenabling functional transformations
Functor,Applicative,Pure, andMonadtrait implementationsfor gauge field operations
map_field,zip_with,scale_field, andidentity_fieldproper Clone + Default bounds
ops_gradient_flow.rs
Gradient flow integration and scale setting implementationdeep_causality_topology/src/types/gauge/gauge_field_lattice/ops_gradient_flow.rs
Runge-Kutta integration methods
setting
try_find_t0method to locate flow time where t² E(t) = 0.3via linear interpolation
and renormalization
ops_metropolis.rs
Metropolis Monte Carlo algorithm for gauge field samplingdeep_causality_topology/src/types/gauge/gauge_field_lattice/ops_metropolis.rs
with detailed balance
tracking
proposals
metropolis_update_f64,metropolis_sweep_f64) for performanceops_actions.rs
Improved lattice gauge actions with Symanzik coefficientsdeep_causality_topology/src/types/gauge/gauge_field_lattice/ops_actions.rs
coefficients
ActionCoeffsstructure
try_improved_actioncomputing both plaquette and rectanglecontributions
O(a²) to O(a⁴)
ops_plague.rs
Plaquette and Wilson loop operations for lattice gauge fieldsdeep_causality_topology/src/types/gauge/gauge_field_lattice/ops_plague.rs
lattice gauge theory
try_plaquette()method computing 1×1 elementary loops andtry_rectangle()for 1×2 loopstry_average_plaquette()for action density measurementsLaTeX formulas
mod.rs
Link variable type for lattice gauge theory representationdeep_causality_topology/src/types/gauge/link_variable/mod.rs
LinkVariablestruct representing group-valued linkvariables on lattice edges
try_identity(),try_zero(),try_random()withfallible and infallible variants
continuum limit properties
ops_continuum.rs
Continuum limit field strength and topological charge extractiondeep_causality_topology/src/types/gauge/gauge_field_lattice/ops_continuum.rs
try_field_strength()computing naive lattice field strengthtensor approximation
calculations
and instantons
mod.rs
Lattice gauge field core type and constructorsdeep_causality_topology/src/types/gauge/gauge_field_lattice/mod.rs
LatticeGaugeFieldstruct storing link variables onlattice edges
try_identity(),try_random(),try_from_links()with variantsstructure
Monte Carlo, and smearing
ops_monte_carlo.rs
Monte Carlo primitives for lattice gauge field updatesdeep_causality_topology/src/types/gauge/gauge_field_lattice/ops_monte_carlo.rs
updates
try_staple()computing surrounding link products andtry_local_action_change()for Metropolis acceptancechanges
mod.rs
Refactored gauge field module structure and organizationdeep_causality_topology/src/types/gauge/gauge_field/mod.rs
GaugeGrouptrait to traitsmodule
GaugeFieldstruct for continuum gauge theoryops_gauge_transform.rs
Gauge transformation operations with error handlingdeep_causality_topology/src/types/gauge/gauge_field_lattice/ops_gauge_transform.rs
try_gauge_transform()try_random_gauge_transform()for testing gauge invariancetheorem
ops_smearing.rs
APE and Stout smearing algorithms for gauge field smoothingdeep_causality_topology/src/types/gauge/gauge_field_lattice/ops_smearing.rs
SmearingParamswith default configurations for APE and Stoutsmearing
try_smear()method with weighted link averaging and SU(N)projection
getters.rs
Getter methods for gauge field components and propertiesdeep_causality_topology/src/types/gauge/gauge_field/getters.rs
GaugeFieldcomponentsand group properties
is_east_coast()andis_west_coast()getters.rs
Getter methods for lattice gauge field componentsdeep_causality_topology/src/types/gauge/gauge_field_lattice/getters.rs
LatticeGaugeFieldcomponentsvariables
into_parts()for decomposition andnum_links()forcardinality
ops_gauge.rs
Legacy gauge transformation operations without error handlingdeep_causality_topology/src/types/gauge/gauge_field_lattice/ops_gauge.rs
gauge_transform()closure
symmetry space
lib.rs
Updated library exports for lattice gauge field infrastructuredeep_causality_topology/src/lib.rs
LinkVariableError,LatticeGaugeField,LinkVariable,FlowParams,SmearingParamsLatticeGaugeFieldWitnessHKT extension exportgetters.rs
Getter methods for link variable matrix data and dimensionsdeep_causality_topology/src/types/gauge/link_variable/getters.rs
LinkVariablematrix dataslices
lie_dim()andmatrix_dim()mod.rs
New gauge module organizing field and group typesdeep_causality_topology/src/types/gauge/mod.rs
GaugeField,LatticeGaugeField,LinkVariabletypeslink_variable
lorentz.rs
Updated Lorentz group with matrix dimension and trait importdeep_causality_topology/src/types/gauge/gauge_groups/lorentz.rs
GaugeGrouptrait from new traits modulelocation
matrix_dim()implementation returning 4 for SO(3,1)representation
gauge_group.rs
Added matrix dimension method to gauge group traitdeep_causality_topology/src/traits/gauge_group.rs
matrix_dim()method toGaugeGrouptrait with default SU(N)implementation
u1.rs
Updated U(1) group with matrix dimension and trait importdeep_causality_topology/src/types/gauge/gauge_groups/u1.rs
GaugeGrouptrait from new traits modulelocation
matrix_dim()implementation returning 1 for U(1) representationdisplay.rs
Display implementation for lattice gauge fielddeep_causality_topology/src/types/gauge/gauge_field_lattice/display.rs
LatticeGaugeFieldparameter
electroweak_impl.rs
Updated electroweak theory imports for new module structuredeep_causality_physics/src/theories/electroweak/electroweak_impl.rs
GaugeFieldWitnesslocationdeep_causality_topologymodulemod.rs
Added gauge group trait to traits module exportsdeep_causality_topology/src/traits/mod.rs
pub mod gauge_groupto trait module exportsGaugeGrouptrait accessible from traits moduleutils.rs
Utility method for link retrieval with identity fallbackdeep_causality_topology/src/types/gauge/gauge_field_lattice/utils.rs
get_link_or_identity()methoddisplay.rs
Display implementation for gauge fielddeep_causality_topology/src/types/gauge/gauge_field/display.rs
GaugeFieldelectroweak.rs
Updated electroweak group trait import pathdeep_causality_topology/src/types/gauge/gauge_groups/electroweak.rs
GaugeGrouptrait from new traits modulelocation
standard_model.rs
Updated standard model group trait import pathdeep_causality_topology/src/types/gauge/gauge_groups/standard_model.rs
GaugeGrouptrait from new traits modulelocation
su2.rs
Updated SU(2) group trait import pathdeep_causality_topology/src/types/gauge/gauge_groups/su2.rs
GaugeGrouptrait from new traits modulelocation
su3.rs
Updated SU(3) group trait import pathdeep_causality_topology/src/types/gauge/gauge_groups/su3.rs
GaugeGrouptrait from new traits modulelocation
display.rs
Display implementation for link variabledeep_causality_topology/src/types/gauge/link_variable/display.rs
LinkVariablepart_eq.rs
Partial equality implementation for link variablesdeep_causality_topology/src/types/gauge/link_variable/part_eq.rs
LinkVariablemod.rs
Renamed gauge field HKT extension moduledeep_causality_topology/src/extensions/mod.rs
hkt_gauge_fieldmodule tohkt_gaugefor consistency1 files
mod.rs
Module export for HKT lattice gauge implementationsdeep_causality_topology/src/extensions/hkt_gauge/mod.rs
hkt_lattice_gaugeto make HKT witnessimplementations publicly available
6 files
lattice_gauge_simulation.rs
Full lattice gauge field simulation example with measurementsdeep_causality_topology/examples/lattice_gauge_simulation.rs
(plaquette, Wilson loops, Polyakov loops)
flow
topology_gauge_field_lattice.md
Lattice Gauge Field Theory Infrastructure Specificationspecs/implemented/topology_gauge_field_lattice.md
LatticeGaugeField
T>type combining discrete lattice structures with gauge field theoryDocumented mathematical background including Wilson loops, plaquettes,
and lattice gauge theory discretization
Specified
LinkVariablewrapper type and core operations(plaquette computation, Wilson action, gauge transformations)
Defined Monte Carlo update algorithms (Metropolis, heat bath,
overrelaxation) and improved actions (Symanzik, Iwasaki, DBW2)
Included smearing algorithms (APE, HYP, stout) and gradient flow(Wilson flow) for renormalization
physics_gauge_theories.md
Standard Model and Gravity Gauge Theory Implementationsspecs/ref/physics_gauge_theories.md
deep_causality_physicscrateModel, and General Relativity fields
their usage across theories
tensor, gluon fields, Weinberg angle)
existing kernels with completion status
topology_gauge_field_review.md
Gauge Field Implementation Review and Validationspecs/ref/topology_gauge_field_review.md
deep_causality_topologyagainst specificationsGaugeField,GaugeGroup,CurvatureTensor,DifferentialForm) are fully implementedElectroweak, StandardModel)
RiemannMapwith safety contract and recommendationsspecifications
submitting.md
JOSS Paper Submission Guidelines and Requirementsdocs/joss/submitting.md
Software (JOSS)
open source hosting, and research application criteria
thinking, open development practices)
accountability requirements
expectations
README.md
Expanded Topology Types Documentation and Formattingdeep_causality_topology/README.md
Lattice, CellComplex, Chain, Skeleton, Simplex, Topology,
DifferentialForm, CurvatureTensor, ReggeGeometry, GaugeField,
LatticeGaugeField, LinkVariable)
with markdown alignment
macro calls)
2 files
topology_error.rs
Added lattice gauge error variant to error handlingdeep_causality_topology/src/errors/topology_error.rs
LatticeGaugeErrorvariant toTopologyErrorEnumLatticeGaugeError()for error creationlink_variable_error.rs
New error type for link variable operationsdeep_causality_topology/src/errors/link_variable_error.rs
LinkVariableErrorenum with variants for shape mismatches,tensor creation, singular matrices
TopologyErrorfor integration with errorhierarchy
27 files