coordinate-system 6.0.1__cp313-cp313-win_amd64.whl → 6.0.4__cp313-cp313-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- coordinate_system/__init__.py +42 -17
- coordinate_system/coordinate_system.cp313-win_amd64.pyd +0 -0
- coordinate_system/fourier_spectral.py +12 -12
- coordinate_system/frames.py +142 -111
- coordinate_system/spectral_geometry.py +1602 -0
- coordinate_system/u3_frame.py +885 -0
- coordinate_system-6.0.4.dist-info/METADATA +244 -0
- coordinate_system-6.0.4.dist-info/RECORD +14 -0
- coordinate_system/curvature.py +0 -321
- coordinate_system/qframes.py +0 -792
- coordinate_system/test_quantum_upgrade.py +0 -383
- coordinate_system-6.0.1.dist-info/METADATA +0 -721
- coordinate_system-6.0.1.dist-info/RECORD +0 -15
- {coordinate_system-6.0.1.dist-info → coordinate_system-6.0.4.dist-info}/LICENSE +0 -0
- {coordinate_system-6.0.1.dist-info → coordinate_system-6.0.4.dist-info}/WHEEL +0 -0
- {coordinate_system-6.0.1.dist-info → coordinate_system-6.0.4.dist-info}/top_level.txt +0 -0
coordinate_system/__init__.py
CHANGED
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
# coordinate_system/__init__.py
|
|
2
2
|
"""
|
|
3
|
-
Coordinate System
|
|
3
|
+
Coordinate System Library
|
|
4
4
|
=========================
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
High-performance 3D coordinate system and differential geometry library.
|
|
7
7
|
|
|
8
|
-
Core Components:
|
|
8
|
+
Core Components (C++ Layer):
|
|
9
9
|
- vec3, vec2: Vector types
|
|
10
|
-
- quat: Quaternion for rotations
|
|
11
|
-
- coord3: 3D coordinate frame
|
|
10
|
+
- quat: Quaternion for rotations (SU(2))
|
|
11
|
+
- coord3: 3D coordinate frame (Sim(3) group)
|
|
12
12
|
|
|
13
|
-
Modules:
|
|
14
|
-
- differential_geometry: Surface curvature
|
|
15
|
-
-
|
|
13
|
+
Python Modules:
|
|
14
|
+
- differential_geometry: Surface curvature via intrinsic gradient / Lie bracket
|
|
15
|
+
- spectral_geometry: FourierFrame (GL(1,C)), spectral analysis, heat kernel
|
|
16
|
+
- u3_frame: U3Frame (U(3)), gauge field theory, symmetry breaking
|
|
16
17
|
- visualization: Coordinate system visualization
|
|
17
|
-
- curve_interpolation:
|
|
18
|
+
- curve_interpolation: C2-continuous curve and frame interpolation
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
Group Correspondence:
|
|
21
|
+
- coord3 ∈ Sim(3) = R³ ⋊ (SO(3) × R⁺)
|
|
22
|
+
- FourierFrame ∈ GL(1,C) = U(1) × R⁺
|
|
23
|
+
- U3Frame ∈ U(3) = SU(3) × U(1)
|
|
24
|
+
|
|
25
|
+
Version: 6.0.4
|
|
20
26
|
"""
|
|
21
27
|
|
|
22
|
-
__version__ = '6.0.
|
|
28
|
+
__version__ = '6.0.4'
|
|
23
29
|
|
|
24
30
|
from .coordinate_system import vec3, vec2
|
|
25
31
|
from .coordinate_system import quat
|
|
@@ -67,11 +73,11 @@ from .differential_geometry import (
|
|
|
67
73
|
richardson_extrapolation,
|
|
68
74
|
)
|
|
69
75
|
|
|
70
|
-
#
|
|
71
|
-
from .
|
|
76
|
+
# Spectral geometry module (FourierFrame, GL(1,C) group)
|
|
77
|
+
from .spectral_geometry import (
|
|
72
78
|
# Core classes
|
|
73
|
-
|
|
74
|
-
|
|
79
|
+
FourierFrame,
|
|
80
|
+
FourierFrameSpectrum,
|
|
75
81
|
|
|
76
82
|
# Spectral geometry core
|
|
77
83
|
IntrinsicGradient,
|
|
@@ -92,6 +98,20 @@ from .frames import (
|
|
|
92
98
|
GPU_AVAILABLE,
|
|
93
99
|
)
|
|
94
100
|
|
|
101
|
+
# U(3) Frame module (U(3) group, gauge field theory)
|
|
102
|
+
from .u3_frame import (
|
|
103
|
+
# Core U(3) classes
|
|
104
|
+
U3Frame,
|
|
105
|
+
SU3Component,
|
|
106
|
+
|
|
107
|
+
# Gauge field classes
|
|
108
|
+
GaugeConnection,
|
|
109
|
+
FieldStrength,
|
|
110
|
+
|
|
111
|
+
# Symmetry breaking
|
|
112
|
+
SymmetryBreakingPotential,
|
|
113
|
+
)
|
|
114
|
+
|
|
95
115
|
# Visualization module
|
|
96
116
|
from .visualization import (
|
|
97
117
|
CoordinateSystemVisualizer,
|
|
@@ -145,13 +165,18 @@ __all__ = [
|
|
|
145
165
|
'compare_methods',
|
|
146
166
|
'derivative_5pt', 'derivative_2nd_5pt', 'richardson_extrapolation',
|
|
147
167
|
|
|
148
|
-
#
|
|
149
|
-
'
|
|
168
|
+
# Spectral geometry module (FourierFrame, GL(1,C))
|
|
169
|
+
'FourierFrame', 'FourierFrameSpectrum',
|
|
150
170
|
'IntrinsicGradient', 'CurvatureFromFrame', 'BerryPhase', 'ChernNumber',
|
|
151
171
|
'SpectralDecomposition', 'HeatKernel', 'FrequencyProjection', 'FrequencyBandState',
|
|
152
172
|
'spectral_transform', 'inverse_spectral_transform',
|
|
153
173
|
'HBAR', 'GPU_AVAILABLE',
|
|
154
174
|
|
|
175
|
+
# U(3) Frame module (Gauge theory)
|
|
176
|
+
'U3Frame', 'SU3Component',
|
|
177
|
+
'GaugeConnection', 'FieldStrength',
|
|
178
|
+
'SymmetryBreakingPotential',
|
|
179
|
+
|
|
155
180
|
# Visualization
|
|
156
181
|
'CoordinateSystemVisualizer', 'CurveVisualizer', 'ParametricCurve',
|
|
157
182
|
'visualize_coord_system', 'visualize_curve',
|
|
Binary file
|
|
@@ -7,8 +7,8 @@ Complex Frame Spectral Analysis - 向后兼容模块
|
|
|
7
7
|
|
|
8
8
|
请直接使用 frames 模块:
|
|
9
9
|
from coordinate_system.frames import (
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
FourierFrame,
|
|
11
|
+
FourierFrameSpectrum,
|
|
12
12
|
spectral_transform,
|
|
13
13
|
inverse_spectral_transform,
|
|
14
14
|
)
|
|
@@ -30,8 +30,8 @@ warnings.warn(
|
|
|
30
30
|
# 从 frames 重导出所有内容
|
|
31
31
|
from .frames import (
|
|
32
32
|
# 核心类
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
FourierFrame,
|
|
34
|
+
FourierFrameSpectrum,
|
|
35
35
|
|
|
36
36
|
# 谱几何核心
|
|
37
37
|
IntrinsicGradient,
|
|
@@ -53,12 +53,12 @@ from .frames import (
|
|
|
53
53
|
)
|
|
54
54
|
|
|
55
55
|
# 向后兼容别名(旧名称映射到新名称)
|
|
56
|
-
QFrame =
|
|
57
|
-
QFrameSpectrum =
|
|
58
|
-
QuantumFrameSpectrum =
|
|
59
|
-
QuantumFrameTransformer =
|
|
60
|
-
Frame =
|
|
61
|
-
FrameSpectrum =
|
|
56
|
+
QFrame = FourierFrame
|
|
57
|
+
QFrameSpectrum = FourierFrameSpectrum
|
|
58
|
+
QuantumFrameSpectrum = FourierFrameSpectrum
|
|
59
|
+
QuantumFrameTransformer = FourierFrame # FourierFrame 现在包含变换方法
|
|
60
|
+
Frame = FourierFrame # 简称别名
|
|
61
|
+
FrameSpectrum = FourierFrameSpectrum # 简称别名
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
def quantum_frame_transform(coord_field, grid_size=None, use_gpu=False, hbar=HBAR):
|
|
@@ -112,8 +112,8 @@ def compute_radial_spectrum(spectrum):
|
|
|
112
112
|
# 导出列表
|
|
113
113
|
__all__ = [
|
|
114
114
|
# 核心类(新名称)
|
|
115
|
-
'
|
|
116
|
-
'
|
|
115
|
+
'FourierFrame',
|
|
116
|
+
'FourierFrameSpectrum',
|
|
117
117
|
|
|
118
118
|
# 谱几何核心
|
|
119
119
|
'IntrinsicGradient',
|