Skip to content

Commit

Permalink
Update run_iotalattice_sdep.py
Browse files Browse the repository at this point in the history
Modified lattice to place nonlinear lens (nll) as the first element.
  • Loading branch information
cemitch99 authored Nov 27, 2023
1 parent 4fa23b2 commit 897419e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions examples/iota_lattice/run_iotalattice_sdep.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,19 @@
]

# build lattice: first half, qe3, then mirror
# fmt: off
lattice_half = []
lattice_half.extend(lattice_before_nll)
lattice_half.extend(nll)
lattice_half.extend(lattice_after_nll)

# modified to place nll as the first element
# fmt:on
sim.lattice.append(monitor)
sim.lattice.extend(lattice_half)
sim.lattice.extend(nll)
sim.lattice.extend(lattice_after_nll)
sim.lattice.append(qe3)
lattice_half.reverse()
sim.lattice.extend(lattice_half)
lattice_after_nll.reverse()
sim.lattice.extend(lattice_after_nll)
sim.lattice.extend(dnll)
lattice_before_nll.reverse()
sim.lattice.extend(lattice_before_nll)
lattice_before_nll.reverse()
sim.lattice.extend(lattice_before_nll)
sim.lattice.append(monitor)

# number of turns in the ring
Expand Down

0 comments on commit 897419e

Please sign in to comment.