Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kwant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joseph Weston
kwant
Commits
76481bd0
Commit
76481bd0
authored
5 years ago
by
Joseph Weston
Browse files
Options
Downloads
Patches
Plain Diff
add whatsnew entry
parent
59c4bf3d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#25330
passed
5 years ago
Stage: build-env
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/source/pre/whatsnew/1.5.rst
+15
-2
15 additions, 2 deletions
doc/source/pre/whatsnew/1.5.rst
with
15 additions
and
2 deletions
doc/source/pre/whatsnew/1.5.rst
+
15
−
2
View file @
76481bd0
...
@@ -4,8 +4,8 @@ What's new in Kwant 1.5
...
@@ -4,8 +4,8 @@ What's new in Kwant 1.5
This article explains the user-visible changes in Kwant 1.5.0.
This article explains the user-visible changes in Kwant 1.5.0.
Value functions may now be vectorized
Kwant supports vectorized value functions
-------------------------------------
-------------------------------------
----
It is now possible to define value functions that act on whole
It is now possible to define value functions that act on whole
arrays of sites at a time.
arrays of sites at a time.
::
::
...
@@ -36,6 +36,19 @@ order of magnitude speedup when evaluating system Hamiltonians (though this
...
@@ -36,6 +36,19 @@ order of magnitude speedup when evaluating system Hamiltonians (though this
speedup may be masked by other parts of your computation e.g. calculating
speedup may be masked by other parts of your computation e.g. calculating
the scattering matrix).
the scattering matrix).
Similarly, the ``onsite`` passed to an operator may now be vectorized in the same
way, as long as the system passed to the operator is also vectorized:
::
def x_onsite(sites):
x, _ = sites.positions().transpose()
return x
x_position = kwant.operator.Density(syst, x_onsite)
psi = kwant.wave_function(syst, energy=0.1)(0)[0]
x_position(psi)
Deprecation of leaving 'norbs' unset for site families
Deprecation of leaving 'norbs' unset for site families
------------------------------------------------------
------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment