- Maple Leaf Lattice
- Kagome Lattice
pip install -r ./requirements.txt
- Note: create python virtual environment tutorial (.venv)
python -m venv .venv
- Activate the virtual environment
for linux or MacOS:
for windows:
source .venv/bin/activate
./.venv/Scripts/Activate.ps1
-L
: Length-W
: Width- (optional Parameters ⬇️)
--inputFile
: read graph from dwave results (files are in./results/
folder)--saveFig
: add this param to save Figure--saveLattice
: add this param to save lattice file--displayType
: choose the Figure type (plain
,spinfile
,orderP
)plain
: no color for nodesspinfile
: separate color for spins up and down in dwave resultsorderP
: order parameters triangular node hint mark
- Triangular Script Example:
python ./triangular/main.py -L 12 -W 12 --inputFile ./results/triangular/HYBRID/tri_L12_JL_1.0_HYBRID_sam1_.txt
- Kagome Script Example:
python ./kagome/main.py -L 12 -W 12 --inputFile ./results/kagome/HYBRID/kagome_L_12_12_HYBRID_sam1_.txt --displayType spinfile
- MapleLeaf Script Example::
python ./maple-leaf/main.py -L 14 -W 14 --inputFile ./results/mapleleaf/HYBRID/mapleleaf_L_14_14_HYBRID_sam1_.txt --displayType orderP
Note
add --saveFig
if want to save Figure
add --saveLattice
if want to save Lattice File
Note
if not giving --displayType
params,
default will be spinfile
when using inputFile
,
and plain
for not using inputFile
- Total Energy: L^2
- Total Energy:
$\dfrac{L^2}{2}$ - Total Nodes
$L^2 - (L/2) ^2$ - ex: L: 120 = 14400 - 3600 = 10800
- Total Energy: L^2
- Dwave Hybrid do well until L 77
- L84:
- Hybrid:-7052
- Answer:-7056
- Total Nodes
$L^2 - L * (L/7)$ $L^2 - \dfrac{L^2}{7} = \dfrac{6}{7}L^2$ - ex: L 42: 42 * 42 - 42 * 6
- ex: L 119: 119^2 - 119 * 17 = 14161 - 2023 = 12138
- ex: L 140: 19600 - 140 * 20 = 19600 - 2800 = 16800