Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Using the HyperCubic struct to define models #9

Description

@LinjianMa

Struct at:

struct HyperCubic{N}
dims::NTuple{N,Int}
end
Base.size(l::HyperCubic) = l.dims
const Chain = HyperCubic{1}
const Square = HyperCubic{2}
const Cubic = HyperCubic{3}

The square_lattice in ITensors.jl is more geared towards a 1-dimensional "snake" pattern through a 2-dimensional lattice. The Square lattice type is more directly suited for 2 dimensions (for example, there are iterators over bonds/edges which are of the form ((2, 2), (2, 3)), so actual 2-dimensional coordinates for the sites).

The localham_term function would need to be adapted to those new types of bonds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions