WIP: Code update
1 unresolved thread
1 unresolved thread
This MR has a dual goal:
- Updating to current holoviews to avoid a bunch of deprecation errors
- Updating to Kwant 1.4:
- Eliminating
args=[SimpleNamespace(...)]
in favor ofparams={...}
. - Using the
Builder.fill
/Builder.substituted
pattern when defining systems.
For now we do not intend to use discretizer yet.
Merge request reports
Activity
One of the main repeated bits of functionality is plotting spectra that depend on 2 or 3 parameters, often momenta. For that we intend to first evaluate the
hamiltonian_array
(defined infunctions
), and then implement a spectrum plotter that internally callshamiltonian_array
(this second step isn't yet done).Pinging @andre_melo and @basnijholt for comments.
274 270 275 271 276 272 ```python 273 # transformation to antisymmetric basis 274 U = np.array([[1.0, 1.0], [1.j, -1.j]]) / np.sqrt(2) 275 276 bulk = kwant.wraparound.wraparound(kitaev_model).finalized() 277 278 pbc = kwant.Builder() 279 pbc[lat(0)] = pbc[lat(L-1)] = onsite 280 pbc[lat(0), lat(L-1)] = hop 281 pbc = pbc.substituted(t='lambda') 282 283 syst.update(pbc) 284 285 finite_chain_pbc = syst.finalized()
Please register or sign in to reply