flatspin.vertices

Vertex analysis

Module Contents

Functions

find_vertices(grid, angle, win_size)

Find the vertices of a geometry

vertex_type_ising(spin, angle)

vertex_type_square(spin, angle)

vertex_type_tri(spin, angle)

vertex_type(spin, angle)

Determine the type of a vertex given its spins and angles

vertex_pos(pos, vertices)

vertex_mag(mag, vertices)

Attributes

vertex_patterns

flatspin.vertices.vertex_patterns
flatspin.vertices.find_vertices(grid, angle, win_size)

Find the vertices of a geometry

Parameters
  • grid (Grid object) – The grid of the spin positions

  • angle (1D array) – The angles of each spin

  • win_size ((height, width)) – The window size to scan the grid

  • (vi (Returns a tuple) –

  • vj

  • vi (indices) where) –

  • indices (vj are the vertex) –

  • vertex (and indices is a list of spin indices corresponding to each) –

  • index.

flatspin.vertices.vertex_type_ising(spin, angle)
flatspin.vertices.vertex_type_square(spin, angle)
flatspin.vertices.vertex_type_tri(spin, angle)
flatspin.vertices.vertex_type(spin, angle)

Determine the type of a vertex given its spins and angles

flatspin.vertices.vertex_pos(pos, vertices)
flatspin.vertices.vertex_mag(mag, vertices)