seemps.analysis.mesh.mesh_to_mps_indices#
- seemps.analysis.mesh.mesh_to_mps_indices(mesh_indices: NDArray, map_matrix: NDArray) NDArray[source]#
Map mesh indices to (quantized) MPS indices.
Given integer coordinates of a discretization Mesh, this function computes the corresponding MPS indices consistent with the linear mapping defined by mps_to_mesh_matrix. Since that forward mapping is generally non-injective, a unique inverse does not exist; the mapping back to MPS indices is therefore constructed here algorithmically by decomposing mesh indices into their quantized components.