1 #ifndef FACTORY_SPINFULLUNIFORM2D_HPP 2 #define FACTORY_SPINFULLUNIFORM2D_HPP 4 #include "../Hamiltonian.hpp" 5 #include "../QuantumSystem.hpp" 6 #include "../Filler.hpp" 8 #include "../VectorViewers/Grid2DViewer.hpp" 10 #include "../ConnectionsFiller.hpp" 36 Dimensions &dimensions = quantumSystem.
dimensions;
37 Parameters ¶meters = quantumSystem.
parameters;
40 int length = dimensions.GetLength();
41 int width = dimensions.GetWidth();
44 int height = dimensions.GetHeight();
47 int N = length * width;
52 for (
int i = 0; i < N; i++)
62 for (
int y = 0; y < width; y++)
64 for (
int x = 0; x < length - 1; x++)
66 int from = y * length + x;
67 int to = y * length + x + 1;
78 for (
int x = 0; x < length; x++)
80 for (
int y = 0; y < width - 1; y++)
82 int from = y * length + x;
83 int to = (y + 1) * length + x;
94 static constexpr
char name[] =
"SpinfullUniform2D";
Parameters parameters
Definition: QuantumSystem.hpp:15
Hamiltonian class for counting MZM in non-interacting systems.
Definition: Hamiltonian.hpp:13
displays vectors with sites numbered in 2D grid,
Definition: Grid2DViewer.hpp:16
Dimensions dimensions
Definition: QuantumSystem.hpp:16
class containing all information about quantum system, which is needed for hamiltonian construction ...
Definition: QuantumSystem.hpp:12
static void Fill(Hamiltonian< T > &ham, Targs... Fargs)
Definition: Filler.hpp:51
static void DimensionsWarningOnly2D(int length, int width, int height)
checks if height is equal 0
Definition: DimensionsWarning.hpp:35