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
e0724de5
Commit
e0724de5
authored
12 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
make it clearer that kwant supports any number of dimensions
parent
0a82b11a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/source/tutorial/introduction.rst
+6
-0
6 additions, 0 deletions
doc/source/tutorial/introduction.rst
kwant/lattice.py
+4
-3
4 additions, 3 deletions
kwant/lattice.py
with
10 additions
and
3 deletions
doc/source/tutorial/introduction.rst
+
6
−
0
View file @
e0724de5
...
...
@@ -46,3 +46,9 @@ The typical workflow with kwant is as follows:
#. Attach leads (tight binding systems with translational symmetry).
#. Pass the finalized system to a solver.
Please note that even though this tutorial only shows 2-d systems, kwant is
completely general with respect to the number of dimensions. kwant does not
care in the least whether systems live in one, two, three, or any other number
of dimensions. The only exception is plotting, which out-of-the-box only works
for up to three dimensions. (But custom projections can be specified!)
This diff is collapsed.
Click to expand it.
kwant/lattice.py
+
4
−
3
View file @
e0724de5
...
...
@@ -11,14 +11,15 @@ from . import builder
def
make_lattice
(
prim_vecs
,
basis
=
None
):
"""
Create a Bravais lattice, which may have more than one basis site.
Create a Bravais lattice of any dimensionality, with any number of basis
sites.
Parameters
----------
prim_vecs : sequence of sequences of floats
P
rimitive vectors of
a
Bravais lattice.
The p
rimitive vectors of
the
Bravais lattice.
basis : sequence of floats
C
oordinates of the basis sites inside the unit cell.
The c
oordinates of the basis sites inside the unit cell.
Returns
-------
...
...
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