Skip to content

Worm algorithm on customized graphs #39

@vws100

Description

@vws100

The worm code yields errors on custom graphs. Should we update the documentation to restrict to lattices or put an alert in the code telling users to stay on lattices?

Discussed in https://github.com/orgs/ALPSim/discussions/38

Originally posted by LAZY1764 March 6, 2026
When my input lattice is like this, the algorithm worked well.
<LATTICEGRAPH name = "square lattice 3x3"> <FINITELATTICE> <LATTICE ref="square lattice"/> <EXTENT dimension="1" size="3"/> <EXTENT dimension="2" size="3"/> <BOUNDARY dimension="1" type="open"/> <BOUNDARY dimension="2" type="open"/> </FINITELATTICE> <UNITCELL ref="simple2d"/> </LATTICEGRAPH>

But when it changed into a graph(without translation symmetry), the algorithm stopped.
<GRAPH name="triangle" vertices="3"> <EDGE type="0" source="1" target="2"/> <EDGE type="0" source="2" target="3"/> <EDGE type="0" source="3" target="1"/> </GRAPH>
And it returned :"Created run 1 locally
Cannot save a measurement of size 0."

Metadata

Metadata

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