coordinate-system 6.0.0__cp313-cp313-win_amd64.whl → 6.0.3__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 +46 -16
- coordinate_system/coordinate_system.cp313-win_amd64.pyd +0 -0
- coordinate_system/fourier_spectral.py +53 -29
- coordinate_system/frames.py +1602 -0
- coordinate_system/u3_frame.py +885 -0
- coordinate_system-6.0.3.dist-info/METADATA +1001 -0
- coordinate_system-6.0.3.dist-info/RECORD +13 -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.0.dist-info/METADATA +0 -783
- coordinate_system-6.0.0.dist-info/RECORD +0 -14
- {coordinate_system-6.0.0.dist-info → coordinate_system-6.0.3.dist-info}/LICENSE +0 -0
- {coordinate_system-6.0.0.dist-info → coordinate_system-6.0.3.dist-info}/WHEEL +0 -0
- {coordinate_system-6.0.0.dist-info → coordinate_system-6.0.3.dist-info}/top_level.txt +0 -0
coordinate_system/__init__.py
CHANGED
|
@@ -12,11 +12,15 @@ Core Components:
|
|
|
12
12
|
|
|
13
13
|
Modules:
|
|
14
14
|
- differential_geometry: Surface curvature computation
|
|
15
|
-
-
|
|
15
|
+
- frames: Fourier frame algebra and spectral geometry
|
|
16
16
|
- visualization: Coordinate system visualization
|
|
17
17
|
- curve_interpolation: Curve and frame interpolation
|
|
18
|
+
|
|
19
|
+
Version: 6.0.3
|
|
18
20
|
"""
|
|
19
21
|
|
|
22
|
+
__version__ = '6.0.3'
|
|
23
|
+
|
|
20
24
|
from .coordinate_system import vec3, vec2
|
|
21
25
|
from .coordinate_system import quat
|
|
22
26
|
from .coordinate_system import coord3
|
|
@@ -63,19 +67,21 @@ from .differential_geometry import (
|
|
|
63
67
|
richardson_extrapolation,
|
|
64
68
|
)
|
|
65
69
|
|
|
66
|
-
#
|
|
67
|
-
from .
|
|
70
|
+
# Fourier frame module (FourierFrame spectral geometry)
|
|
71
|
+
from .frames import (
|
|
68
72
|
# Core classes
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
FourierFrame,
|
|
74
|
+
FourierFrameSpectrum,
|
|
75
|
+
|
|
76
|
+
# Spectral geometry core
|
|
77
|
+
IntrinsicGradient,
|
|
78
|
+
CurvatureFromFrame,
|
|
79
|
+
BerryPhase,
|
|
80
|
+
ChernNumber,
|
|
81
|
+
SpectralDecomposition,
|
|
82
|
+
HeatKernel,
|
|
83
|
+
FrequencyProjection,
|
|
84
|
+
FrequencyBandState,
|
|
79
85
|
|
|
80
86
|
# Convenience functions
|
|
81
87
|
spectral_transform,
|
|
@@ -86,6 +92,23 @@ from .qframes import (
|
|
|
86
92
|
GPU_AVAILABLE,
|
|
87
93
|
)
|
|
88
94
|
|
|
95
|
+
# U(3) Frame module (Unified gauge theory framework)
|
|
96
|
+
from .u3_frame import (
|
|
97
|
+
# Core U(3) classes
|
|
98
|
+
U3Frame,
|
|
99
|
+
SU3Component,
|
|
100
|
+
|
|
101
|
+
# Gauge field classes
|
|
102
|
+
GaugeConnection,
|
|
103
|
+
FieldStrength,
|
|
104
|
+
|
|
105
|
+
# Symmetry breaking
|
|
106
|
+
SymmetryBreakingPotential,
|
|
107
|
+
|
|
108
|
+
# Constants
|
|
109
|
+
C_SPEED,
|
|
110
|
+
)
|
|
111
|
+
|
|
89
112
|
# Visualization module
|
|
90
113
|
from .visualization import (
|
|
91
114
|
CoordinateSystemVisualizer,
|
|
@@ -139,12 +162,19 @@ __all__ = [
|
|
|
139
162
|
'compare_methods',
|
|
140
163
|
'derivative_5pt', 'derivative_2nd_5pt', 'richardson_extrapolation',
|
|
141
164
|
|
|
142
|
-
#
|
|
143
|
-
'
|
|
144
|
-
'
|
|
165
|
+
# Fourier frame module
|
|
166
|
+
'FourierFrame', 'FourierFrameSpectrum',
|
|
167
|
+
'IntrinsicGradient', 'CurvatureFromFrame', 'BerryPhase', 'ChernNumber',
|
|
168
|
+
'SpectralDecomposition', 'HeatKernel', 'FrequencyProjection', 'FrequencyBandState',
|
|
145
169
|
'spectral_transform', 'inverse_spectral_transform',
|
|
146
170
|
'HBAR', 'GPU_AVAILABLE',
|
|
147
171
|
|
|
172
|
+
# U(3) Frame module (Gauge theory)
|
|
173
|
+
'U3Frame', 'SU3Component',
|
|
174
|
+
'GaugeConnection', 'FieldStrength',
|
|
175
|
+
'SymmetryBreakingPotential',
|
|
176
|
+
'C_SPEED',
|
|
177
|
+
|
|
148
178
|
# Visualization
|
|
149
179
|
'CoordinateSystemVisualizer', 'CurveVisualizer', 'ParametricCurve',
|
|
150
180
|
'visualize_coord_system', 'visualize_curve',
|
|
Binary file
|
|
@@ -1,39 +1,47 @@
|
|
|
1
1
|
"""
|
|
2
|
-
|
|
2
|
+
Complex Frame Spectral Analysis - 向后兼容模块
|
|
3
3
|
==============================================
|
|
4
4
|
|
|
5
|
-
此模块已合并到
|
|
5
|
+
此模块已合并到 frames.py 中。
|
|
6
6
|
保留此文件仅用于向后兼容。
|
|
7
7
|
|
|
8
|
-
请直接使用
|
|
9
|
-
from coordinate_system.
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
请直接使用 frames 模块:
|
|
9
|
+
from coordinate_system.frames import (
|
|
10
|
+
FourierFrame,
|
|
11
|
+
FourierFrameSpectrum,
|
|
12
12
|
spectral_transform,
|
|
13
13
|
inverse_spectral_transform,
|
|
14
14
|
)
|
|
15
15
|
|
|
16
16
|
Author: Quantum Frame Theory
|
|
17
|
-
Date: 2025-12-
|
|
17
|
+
Date: 2025-12-04
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
20
|
import warnings
|
|
21
21
|
|
|
22
22
|
# 发出弃用警告
|
|
23
23
|
warnings.warn(
|
|
24
|
-
"fourier_spectral 模块已合并到
|
|
25
|
-
"请直接使用: from coordinate_system.
|
|
24
|
+
"fourier_spectral 模块已合并到 frames.py 中。"
|
|
25
|
+
"请直接使用: from coordinate_system.frames import ...",
|
|
26
26
|
DeprecationWarning,
|
|
27
27
|
stacklevel=2
|
|
28
28
|
)
|
|
29
29
|
|
|
30
|
-
# 从
|
|
31
|
-
from .
|
|
30
|
+
# 从 frames 重导出所有内容
|
|
31
|
+
from .frames import (
|
|
32
32
|
# 核心类
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
FourierFrame,
|
|
34
|
+
FourierFrameSpectrum,
|
|
35
|
+
|
|
36
|
+
# 谱几何核心
|
|
37
|
+
IntrinsicGradient,
|
|
38
|
+
CurvatureFromFrame,
|
|
39
|
+
BerryPhase,
|
|
40
|
+
ChernNumber,
|
|
41
|
+
SpectralDecomposition,
|
|
42
|
+
HeatKernel,
|
|
43
|
+
FrequencyProjection,
|
|
44
|
+
FrequencyBandState,
|
|
37
45
|
|
|
38
46
|
# 便利函数
|
|
39
47
|
spectral_transform,
|
|
@@ -44,26 +52,30 @@ from .qframes import (
|
|
|
44
52
|
GPU_AVAILABLE,
|
|
45
53
|
)
|
|
46
54
|
|
|
47
|
-
#
|
|
48
|
-
|
|
49
|
-
|
|
55
|
+
# 向后兼容别名(旧名称映射到新名称)
|
|
56
|
+
QFrame = FourierFrame
|
|
57
|
+
QFrameSpectrum = FourierFrameSpectrum
|
|
58
|
+
QuantumFrameSpectrum = FourierFrameSpectrum
|
|
59
|
+
QuantumFrameTransformer = FourierFrame # FourierFrame 现在包含变换方法
|
|
60
|
+
Frame = FourierFrame # 简称别名
|
|
61
|
+
FrameSpectrum = FourierFrameSpectrum # 简称别名
|
|
50
62
|
|
|
51
63
|
|
|
52
64
|
def quantum_frame_transform(coord_field, grid_size=None, use_gpu=False, hbar=HBAR):
|
|
53
65
|
"""
|
|
54
|
-
向后兼容函数 - 已整合到
|
|
66
|
+
向后兼容函数 - 已整合到 Frame.from_coord_field()
|
|
55
67
|
"""
|
|
56
68
|
warnings.warn(
|
|
57
|
-
"quantum_frame_transform() 已弃用,请使用
|
|
69
|
+
"quantum_frame_transform() 已弃用,请使用 Frame.from_coord_field()",
|
|
58
70
|
DeprecationWarning,
|
|
59
71
|
stacklevel=2
|
|
60
72
|
)
|
|
61
|
-
return
|
|
73
|
+
return Frame.from_coord_field(coord_field, hbar)
|
|
62
74
|
|
|
63
75
|
|
|
64
76
|
def inverse_quantum_transform(spectrum, use_gpu=False):
|
|
65
77
|
"""
|
|
66
|
-
向后兼容函数 - 已整合到
|
|
78
|
+
向后兼容函数 - 已整合到 FrameSpectrum.to_coord_field()
|
|
67
79
|
"""
|
|
68
80
|
warnings.warn(
|
|
69
81
|
"inverse_quantum_transform() 已弃用,请使用 spectrum.to_coord_field()",
|
|
@@ -75,7 +87,7 @@ def inverse_quantum_transform(spectrum, use_gpu=False):
|
|
|
75
87
|
|
|
76
88
|
def compute_quantum_spectral_density(spectrum):
|
|
77
89
|
"""
|
|
78
|
-
向后兼容函数 - 已整合到
|
|
90
|
+
向后兼容函数 - 已整合到 FrameSpectrum.spectral_density()
|
|
79
91
|
"""
|
|
80
92
|
warnings.warn(
|
|
81
93
|
"compute_quantum_spectral_density() 已弃用,请使用 spectrum.spectral_density()",
|
|
@@ -87,7 +99,7 @@ def compute_quantum_spectral_density(spectrum):
|
|
|
87
99
|
|
|
88
100
|
def compute_radial_spectrum(spectrum):
|
|
89
101
|
"""
|
|
90
|
-
向后兼容函数 - 已整合到
|
|
102
|
+
向后兼容函数 - 已整合到 FrameSpectrum.radial_average()
|
|
91
103
|
"""
|
|
92
104
|
warnings.warn(
|
|
93
105
|
"compute_radial_spectrum() 已弃用,请使用 spectrum.radial_average()",
|
|
@@ -99,15 +111,27 @@ def compute_radial_spectrum(spectrum):
|
|
|
99
111
|
|
|
100
112
|
# 导出列表
|
|
101
113
|
__all__ = [
|
|
102
|
-
#
|
|
114
|
+
# 核心类(新名称)
|
|
115
|
+
'FourierFrame',
|
|
116
|
+
'FourierFrameSpectrum',
|
|
117
|
+
|
|
118
|
+
# 谱几何核心
|
|
119
|
+
'IntrinsicGradient',
|
|
120
|
+
'CurvatureFromFrame',
|
|
121
|
+
'BerryPhase',
|
|
122
|
+
'ChernNumber',
|
|
123
|
+
'SpectralDecomposition',
|
|
124
|
+
'HeatKernel',
|
|
125
|
+
'FrequencyProjection',
|
|
126
|
+
'FrequencyBandState',
|
|
127
|
+
|
|
128
|
+
# 向后兼容别名(旧名称)
|
|
103
129
|
'QFrame',
|
|
104
|
-
'QuantumState',
|
|
105
|
-
'PathIntegral',
|
|
106
130
|
'QFrameSpectrum',
|
|
107
|
-
|
|
108
|
-
# 向后兼容别名
|
|
109
131
|
'QuantumFrameSpectrum',
|
|
110
132
|
'QuantumFrameTransformer',
|
|
133
|
+
'Frame',
|
|
134
|
+
'FrameSpectrum',
|
|
111
135
|
|
|
112
136
|
# 便利函数
|
|
113
137
|
'spectral_transform',
|