Skip to content
Snippets Groups Projects
Commit 062b5a2f authored by Bas Nijholt's avatar Bas Nijholt
Browse files

Remove uncommon import from test_leads.py

parent ea173611
No related branches found
No related tags found
No related merge requests found
...@@ -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(npl.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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment