coordinate-system 6.0.0__cp313-cp313-win_amd64.whl → 6.0.1__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.
@@ -12,11 +12,15 @@ Core Components:
12
12
 
13
13
  Modules:
14
14
  - differential_geometry: Surface curvature computation
15
- - qframes: Quantum frame algebra
15
+ - frames: Complex frame algebra and spectral geometry
16
16
  - visualization: Coordinate system visualization
17
17
  - curve_interpolation: Curve and frame interpolation
18
+
19
+ Version: 6.0.1
18
20
  """
19
21
 
22
+ __version__ = '6.0.1'
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
- # Quantum frame module (QFrame spectral analysis)
67
- from .qframes import (
70
+ # Complex frame module (ComplexFrame spectral geometry)
71
+ from .frames import (
68
72
  # Core classes
69
- QFrame,
70
- QuantumState,
71
- PathIntegral,
72
- QFrameSpectrum,
73
-
74
- # Dirac notation export
75
- DiracBra,
76
- DiracKet,
77
- bra,
78
- ket,
73
+ ComplexFrame,
74
+ ComplexFrameSpectrum,
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,
@@ -139,9 +145,10 @@ __all__ = [
139
145
  'compare_methods',
140
146
  'derivative_5pt', 'derivative_2nd_5pt', 'richardson_extrapolation',
141
147
 
142
- # Quantum frame module
143
- 'QFrame', 'QuantumState', 'PathIntegral', 'QFrameSpectrum',
144
- 'DiracBra', 'DiracKet', 'bra', 'ket',
148
+ # Complex frame module
149
+ 'ComplexFrame', 'ComplexFrameSpectrum',
150
+ 'IntrinsicGradient', 'CurvatureFromFrame', 'BerryPhase', 'ChernNumber',
151
+ 'SpectralDecomposition', 'HeatKernel', 'FrequencyProjection', 'FrequencyBandState',
145
152
  'spectral_transform', 'inverse_spectral_transform',
146
153
  'HBAR', 'GPU_AVAILABLE',
147
154
 
@@ -1,39 +1,47 @@
1
1
  """
2
- Quantum Frame Spectral Analysis - 向后兼容模块
2
+ Complex Frame Spectral Analysis - 向后兼容模块
3
3
  ==============================================
4
4
 
5
- 此模块已合并到 qframes.py 中。
5
+ 此模块已合并到 frames.py 中。
6
6
  保留此文件仅用于向后兼容。
7
7
 
8
- 请直接使用 qframes 模块:
9
- from coordinate_system.qframes import (
10
- QFrame,
11
- QFrameSpectrum,
8
+ 请直接使用 frames 模块:
9
+ from coordinate_system.frames import (
10
+ ComplexFrame,
11
+ ComplexFrameSpectrum,
12
12
  spectral_transform,
13
13
  inverse_spectral_transform,
14
14
  )
15
15
 
16
16
  Author: Quantum Frame Theory
17
- Date: 2025-12-03
17
+ Date: 2025-12-04
18
18
  """
19
19
 
20
20
  import warnings
21
21
 
22
22
  # 发出弃用警告
23
23
  warnings.warn(
24
- "fourier_spectral 模块已合并到 qframes.py 中。"
25
- "请直接使用: from coordinate_system.qframes import ...",
24
+ "fourier_spectral 模块已合并到 frames.py 中。"
25
+ "请直接使用: from coordinate_system.frames import ...",
26
26
  DeprecationWarning,
27
27
  stacklevel=2
28
28
  )
29
29
 
30
- # 从 qframes 重导出所有内容
31
- from .qframes import (
30
+ # 从 frames 重导出所有内容
31
+ from .frames import (
32
32
  # 核心类
33
- QFrame,
34
- QuantumState,
35
- PathIntegral,
36
- QFrameSpectrum,
33
+ ComplexFrame,
34
+ ComplexFrameSpectrum,
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
- QuantumFrameSpectrum = QFrameSpectrum
49
- QuantumFrameTransformer = QFrame # QFrame 现在包含变换方法
55
+ # 向后兼容别名(旧名称映射到新名称)
56
+ QFrame = ComplexFrame
57
+ QFrameSpectrum = ComplexFrameSpectrum
58
+ QuantumFrameSpectrum = ComplexFrameSpectrum
59
+ QuantumFrameTransformer = ComplexFrame # ComplexFrame 现在包含变换方法
60
+ Frame = ComplexFrame # 简称别名
61
+ FrameSpectrum = ComplexFrameSpectrum # 简称别名
50
62
 
51
63
 
52
64
  def quantum_frame_transform(coord_field, grid_size=None, use_gpu=False, hbar=HBAR):
53
65
  """
54
- 向后兼容函数 - 已整合到 QFrame.from_coord_field()
66
+ 向后兼容函数 - 已整合到 Frame.from_coord_field()
55
67
  """
56
68
  warnings.warn(
57
- "quantum_frame_transform() 已弃用,请使用 QFrame.from_coord_field()",
69
+ "quantum_frame_transform() 已弃用,请使用 Frame.from_coord_field()",
58
70
  DeprecationWarning,
59
71
  stacklevel=2
60
72
  )
61
- return QFrame.from_coord_field(coord_field, hbar)
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
- 向后兼容函数 - 已整合到 QFrameSpectrum.to_coord_field()
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
- 向后兼容函数 - 已整合到 QFrameSpectrum.spectral_density()
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
- 向后兼容函数 - 已整合到 QFrameSpectrum.radial_average()
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
+ 'ComplexFrame',
116
+ 'ComplexFrameSpectrum',
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',