Skip to content
Snippets Groups Projects

WIP: Code update

Closed Anton Akhmerov requested to merge feature/code-update into master
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 of params={...}.
  • Using the Builder.fill/Builder.substituted pattern when defining systems.

For now we do not intend to use discretizer yet.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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()
  • Anton Akhmerov added 1 commit

    added 1 commit

    Compare with previous version

  • OK, this is now partially obsolete, and partially in a majestic merge conflict, so I'm gonna close.

  • Please register or sign in to reply
    Loading