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
062b5a2f
Commit
062b5a2f
authored
8 years ago
by
Bas Nijholt
Browse files
Options
Downloads
Patches
Plain Diff
Remove uncommon import from test_leads.py
parent
ea173611
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kwant/physics/tests/test_leads.py
+1
-2
1 addition, 2 deletions
kwant/physics/tests/test_leads.py
with
1 addition
and
2 deletions
kwant/physics/tests/test_leads.py
+
1
−
2
View file @
062b5a2f
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
import
numpy
as
np
import
numpy
as
np
from
numpy.testing
import
assert_almost_equal
from
numpy.testing
import
assert_almost_equal
import
scipy.linalg
as
la
import
scipy.linalg
as
la
import
numpy.linalg
as
npl
from
kwant.physics
import
leads
from
kwant.physics
import
leads
import
kwant
import
kwant
...
@@ -463,7 +462,7 @@ def test_PHS_TRIM_degenerate_ordering():
...
@@ -463,7 +462,7 @@ def test_PHS_TRIM_degenerate_ordering():
# P squares to -1
# P squares to -1
assert
np
.
allclose
(
pmat
.
dot
(
pmat
.
conj
()),
-
np
.
eye
(
pmat
.
shape
[
0
]))
assert
np
.
allclose
(
pmat
.
dot
(
pmat
.
conj
()),
-
np
.
eye
(
pmat
.
shape
[
0
]))
# The Hamiltonian anticommutes with P
# The Hamiltonian anticommutes with P
assert
np
.
allclose
(
pmat
.
dot
(
hop
.
conj
()).
dot
(
np
l
.
inv
(
pmat
)),
-
hop
)
assert
np
.
allclose
(
pmat
.
dot
(
hop
.
conj
()).
dot
(
np
.
linalg
.
inv
(
pmat
)),
-
hop
)
onsite
=
np
.
zeros
(
hop
.
shape
,
dtype
=
complex
)
onsite
=
np
.
zeros
(
hop
.
shape
,
dtype
=
complex
)
prop
,
stab
=
leads
.
modes
(
onsite
,
hop
,
particle_hole
=
pmat
)
prop
,
stab
=
leads
.
modes
(
onsite
,
hop
,
particle_hole
=
pmat
)
...
...
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