Browse Source

Fix up 3D lattice example.

master
Pete Shadbolt 8 years ago
parent
commit
cbafa227b6
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      examples/visualization/lattice_3d.py

+ 4
- 2
examples/visualization/lattice_3d.py View File

@@ -1,4 +1,4 @@
from abp.fancy import GraphState
from abp import GraphState, VizClient
from abp.util import xyz from abp.util import xyz
import numpy as np import numpy as np
import time import time
@@ -50,5 +50,7 @@ for node in nodes:


for edge in edges: for edge in edges:
psi.act_cz(str(edge[0]), str(edge[1])) psi.act_cz(str(edge[0]), str(edge[1]))
psi.update()

v = VizClient()
v.update(psi)



Loading…
Cancel
Save