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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joseph Weston
kwant
Commits
8023da67
Commit
8023da67
authored
Nov 26, 2019
by
Joseph Weston
Browse files
Options
Downloads
Patches
Plain Diff
add 'symmetry' and 'symmetry_element' to the abstract vectorized system
parent
339dff64
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
kwant/system.py
+7
-3
7 additions, 3 deletions
kwant/system.py
with
7 additions
and
3 deletions
kwant/system.py
+
7
−
3
View file @
8023da67
...
...
@@ -529,7 +529,7 @@ class System(metaclass=abc.ABCMeta):
Term
=
namedtuple
(
"
Term
"
,
[
"
subgraph
"
,
"
hermitian
"
,
"
parameters
"
],
[
"
subgraph
"
,
"
symmetry_element
"
,
"
hermitian
"
,
"
parameters
"
],
)
...
...
@@ -538,6 +538,8 @@ class VectorizedSystem(System, metaclass=abc.ABCMeta):
Attributes
----------
symmetry : kwant.system.Symmetry
The symmetry of the system.
graph : kwant.graph.CGraph
The system graph.
subgraphs : sequence of tuples
...
...
@@ -546,9 +548,11 @@ class VectorizedSystem(System, metaclass=abc.ABCMeta):
indexed by
'
idx1
'
and
'
idx2
'
.
terms : sequence of tuples
Each tuple has the following structure:
(subgraph: int, hermitian: bool, parameters: List(str))
(subgraph: int,
symmetry_element: tuple,
hermitian: bool, parameters: List(str))
'
subgraph
'
indexes
'
subgraphs
'
and supplies the to/from sites of this
term.
'
hermitian
'
is
'
True
'
if the term needs its Hermitian
term.
'
symmetry_element
'
is the symmetry group element that should be
applied to the
'
to-sites
'
of this term.
'
hermitian
'
is
'
True
'
if the term needs its Hermitian
conjugate to be added when evaluating the Hamiltonian, and
'
parameters
'
contains a list of parameter names used when evaluating this term.
site_arrays : sequence of SiteArray
...
...
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