Shastry-Sutherland Lattice

This example computes the linked cluster expansion on a Shastry-Sutherland lattice up to order 3.

Setup

Define the unit cell of the Shastry-Sutherland lattice:

using Lincege

shsu_basis = [[0.0, 0.0], [(sqrt(3) + 1) / (2 * sqrt(2)), (sqrt(3) - 1) / (2 * sqrt(2))], [sqrt(2) / 2, sqrt(6) / 2], [(sqrt(3) + 3) / (2 * sqrt(2)), (sqrt(3) + 1) / (2 * sqrt(2))]]
shsu_pvecs = [[(sqrt(3) + 1) / sqrt(2), 0.0], [0.0, (sqrt(3) + 1) / sqrt(2)]]
shsu_bonds = [Bond(1, 2, [0, 0], 1), Bond(2, 3, [0, 0], 1), Bond(1, 4, [-1, 0], 1), Bond(3, 4, [-1, 0], 1),
        Bond(3, 4, [0, 0], 2), Bond(2, 3, [0, -1], 2), Bond(1, 2, [-1, 0], 2), Bond(1, 4, [-1, -1], 2),
        Bond(2, 4, [-1, -1], 3), Bond(1, 3, [-1, 0], 3)]
shsu_uc = UnitCell(shsu_basis, shsu_pvecs, shsu_bonds, [1, 2, 3, 4])
UnitCell([0.0 0.9659258262890682 0.7071067811865476 1.6730326074756154; 0.0 0.2588190451025207 1.224744871391589 0.9659258262890682], [1.9318516525781364 0.0; 0.0 1.9318516525781364], [1, 2, 3, 4], Bond[Bond(1, 2, [0, 0], 1), Bond(2, 3, [0, 0], 1), Bond(1, 4, [-1, 0], 1), Bond(3, 4, [-1, 0], 1), Bond(3, 4, [0, 0], 2), Bond(2, 3, [0, -1], 2), Bond(1, 2, [-1, 0], 2), Bond(1, 4, [-1, -1], 2), Bond(2, 4, [-1, -1], 3), Bond(1, 3, [-1, 0], 3)])

The four-site basis uses three bond types to distinguish the interaction families. Nonzero bond offsets connect to neighboring cells. The four distinct site colors keep the basis sites distinguishable when comparing clusters.

Imaging the unit cell and lattice

Load Plots and ColorSchemes to activate Lincege.jl's plotting capabilities.

using Plots, ColorSchemes
image_unit_cell(shsu_uc)
Example block output
image_lattice(shsu_uc)
Example block output

Building the lattice and clusters

The following code generates clusters up to order 3, starting with translational clusters and reducing to isomorphic clusters.

m_order = 3
lattice = SiteExpansionLattice(m_order, shsu_uc)

trans_clusters = TranslationClusterSet(lattice)
clusters_from_lattice!(trans_clusters, lattice)

iso_clusters = IsomorphicClusterSet(lattice)
reduce_clusters!(iso_clusters, trans_clusters)
ClusterSet{IsomorphicHasher} with 45 clusters

Computing the expansion

The final NLCE expansion weights are computed recursively.

expansion = Expansion(iso_clusters, lattice)
summation!(expansion, m_order)
Expansion(Dict{UInt64, Lincege.ExpansionCluster}(0xf2c7e2ae8d7d67aa => Lincege.ExpansionCluster(Vertices: [25, 74, 116], 0.25, UInt64[0x50bfa0d597fe34ca, 0x6f31e20113e0f48a, 0x66400bdc5f7d5a76, 0x64f148fd7b524c9b, 0x14acd1057b698a40], Dict{UInt64, Float64}(0x66400bdc5f7d5a76 => -1.0, 0x64f148fd7b524c9b => 0.0, 0xf2c7e2ae8d7d67aa => 1.0, 0x6f31e20113e0f48a => 1.0, 0x14acd1057b698a40 => 0.0, 0x50bfa0d597fe34ca => -1.0)), 0x368b550bfd0bea22 => Lincege.ExpansionCluster(Vertices: [25, 73], 0.25, UInt64[0x6f31e20113e0f48a, 0x14acd1057b698a40], Dict{UInt64, Float64}(0x368b550bfd0bea22 => 1.0, 0x6f31e20113e0f48a => -1.0, 0x14acd1057b698a40 => -1.0)), 0x5412ef84d8346512 => Lincege.ExpansionCluster(Vertices: [25, 73, 171], 0.25, UInt64[0x4083f3200dac3cc5, 0x368b550bfd0bea22, 0x8d50189f91dbea3c, 0x6f31e20113e0f48a, 0x14acd1057b698a40], Dict{UInt64, Float64}(0x4083f3200dac3cc5 => 0.0, 0x8d50189f91dbea3c => -1.0, 0x368b550bfd0bea22 => -1.0, 0x6f31e20113e0f48a => 0.0, 0x14acd1057b698a40 => 1.0, 0x5412ef84d8346512 => 1.0)), 0xc39174d6ff5dc2d7 => Lincege.ExpansionCluster(Vertices: [74, 123, 172], 0.25, UInt64[0x64f148fd7b524c9b, 0x6f31e20113e0f48a, 0x2857e504e275c28e, 0x80efff92cccbe1ad, 0x4083f3200dac3cc5], Dict{UInt64, Float64}(0xc39174d6ff5dc2d7 => 1.0, 0x80efff92cccbe1ad => -1.0, 0x4083f3200dac3cc5 => 0.0, 0x6f31e20113e0f48a => 0.0, 0x2857e504e275c28e => -1.0, 0x64f148fd7b524c9b => 1.0)), 0x545abdfea75ad414 => Lincege.ExpansionCluster(Vertices: [25, 73, 115], 0.25, UInt64[0x64f148fd7b524c9b, 0x368b550bfd0bea22, 0x6f31e20113e0f48a, 0x66400bdc5f7d5a76, 0x14acd1057b698a40], Dict{UInt64, Float64}(0x66400bdc5f7d5a76 => -1.0, 0x545abdfea75ad414 => 1.0, 0x368b550bfd0bea22 => -1.0, 0x6f31e20113e0f48a => 1.0, 0x14acd1057b698a40 => 0.0, 0x64f148fd7b524c9b => 0.0)), 0xe4ba7315b027f93d => Lincege.ExpansionCluster(Vertices: [24, 25, 73], 0.25, UInt64[0x50bfa0d597fe34ca, 0x368b550bfd0bea22, 0x6f31e20113e0f48a, 0x14acd1057b698a40, 0x14acd1057b698a40], Dict{UInt64, Float64}(0xe4ba7315b027f93d => 1.0, 0x368b550bfd0bea22 => -1.0, 0x6f31e20113e0f48a => 1.0, 0x14acd1057b698a40 => 0.0, 0x50bfa0d597fe34ca => -1.0)), 0x4083f3200dac3cc5 => Lincege.ExpansionCluster(Vertices: [172], 0.25, UInt64[], Dict{UInt64, Float64}(0x4083f3200dac3cc5 => 1.0)), 0x75652e8553487f93 => Lincege.ExpansionCluster(Vertices: [67, 74, 116], 0.25, UInt64[0x6f31e20113e0f48a, 0x2857e504e275c28e, 0x6f31e20113e0f48a, 0x66400bdc5f7d5a76, 0x64f148fd7b524c9b], Dict{UInt64, Float64}(0x66400bdc5f7d5a76 => -1.0, 0x75652e8553487f93 => 1.0, 0x6f31e20113e0f48a => 0.0, 0x2857e504e275c28e => -1.0, 0x64f148fd7b524c9b => 1.0)), 0x64ad24a410c0c0d4 => Lincege.ExpansionCluster(Vertices: [25, 122], 0.25, UInt64[0x14acd1057b698a40, 0x64f148fd7b524c9b], Dict{UInt64, Float64}(0x64ad24a410c0c0d4 => 1.0, 0x14acd1057b698a40 => -1.0, 0x64f148fd7b524c9b => -1.0)), 0x89fbbe2d59324534 => Lincege.ExpansionCluster(Vertices: [25, 73, 74], 0.25, UInt64[0x50bfa0d597fe34ca, 0x368b550bfd0bea22, 0x6f31e20113e0f48a, 0x6f31e20113e0f48a, 0x14acd1057b698a40], Dict{UInt64, Float64}(0x89fbbe2d59324534 => 1.0, 0x368b550bfd0bea22 => -1.0, 0x6f31e20113e0f48a => 0.0, 0x14acd1057b698a40 => 1.0, 0x50bfa0d597fe34ca => -1.0))…), Vector{UInt64}[[0x14acd1057b698a40, 0x6f31e20113e0f48a, 0x64f148fd7b524c9b, 0x4083f3200dac3cc5], [0x8d50189f91dbea3c, 0x2857e504e275c28e, 0x50bfa0d597fe34ca, 0x6df18adefdebefa5, 0x368b550bfd0bea22, 0x64ad24a410c0c0d4, 0xfbcc5c4ca8d2d66f, 0x66400bdc5f7d5a76, 0xcaf17dd6c05a5fd2, 0x80efff92cccbe1ad], [0xf2c7e2ae8d7d67aa, 0x545abdfea75ad414, 0x75652e8553487f93, 0xf6439c023c0cf6af, 0x1672cf353237fd28, 0x320b58abd5a10484, 0xa2dc8ff9473cee03, 0x2197e734dacfc61d, 0xdad47977f4b7971a, 0x6803c5c18567395e  …  0xdf9b858d35ee8468, 0xed37f297d0766c2c, 0x87e34bfe5bdbbe15, 0x967ff5837cf78440, 0x19878ea38b05f264, 0x20edad48a87d4d96, 0x51a3bb587fe1ce8c, 0x285456635d98bab7, 0xd5314c606b1327a1, 0xbc4d185af868354e]], 0)

Writing to JSON

Lastly, write the results to a JSON file for future computations.

write_to_json(expansion, lattice, joinpath(output_dir, "shastry_sutherland_lattice_site_expansion.json"))