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
Anton Akhmerov
kwant
Commits
5af193bc
There was a problem fetching the pipeline summary.
Commit
5af193bc
authored
8 years ago
by
Tómas
Browse files
Options
Downloads
Patches
Plain Diff
smaller matrices in tests
parent
14f7021f
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kwant/physics/tests/test_leads.py
+5
-5
5 additions, 5 deletions
kwant/physics/tests/test_leads.py
with
5 additions
and
5 deletions
kwant/physics/tests/test_leads.py
+
5
−
5
View file @
5af193bc
...
...
@@ -296,7 +296,7 @@ def test_symm_algorithm_equivalence():
"""
Test different stabilization methods in the computation of modes,
in the presence and/or absence of the discrete symmetries.
"""
np
.
random
.
seed
(
400
)
for
n
in
(
12
,
20
,
40
,
60
):
for
n
in
(
12
,
20
,
40
):
for
sym
in
kwant
.
rmt
.
sym_list
:
# Random onsite and hopping matrices in symmetry class
h_cell
=
kwant
.
rmt
.
gaussian
(
n
,
sym
)
...
...
@@ -449,8 +449,8 @@ def test_PHS_TRIM_degenerate_ordering():
### P squares to -1 ###
np
.
random
.
seed
(
1337
)
dims
=
(
1
,
4
,
40
)
ts
=
(
1.0
,
1
.
7
,
13.4
)
dims
=
(
1
,
4
,
16
)
ts
=
(
1.0
,
17
.2
,
13.4
)
hop_mat
=
np
.
kron
(
sz
,
1j
*
(
0.1
+
np
.
random
.
rand
())
*
np
.
eye
(
2
))
blocks
=
[]
...
...
@@ -488,7 +488,7 @@ def test_PHS_TRIM_degenerate_ordering():
def
test_modes_symmetries
():
np
.
random
.
seed
(
10
)
for
n
in
(
4
,
8
,
40
,
10
0
):
for
n
in
(
4
,
8
,
40
,
6
0
):
for
sym
in
kwant
.
rmt
.
sym_list
:
# Random onsite and hopping matrices in symmetry class
h_cell
=
kwant
.
rmt
.
gaussian
(
n
,
sym
)
...
...
@@ -559,7 +559,7 @@ def test_modes_symmetries():
def
test_PHS_TRIM
():
"""
Test the function that makes particle-hole symmetric modes at a TRIM.
"""
np
.
random
.
seed
(
10
)
for
n
in
(
4
,
8
,
16
,
40
,
10
0
):
for
n
in
(
4
,
8
,
16
,
40
,
6
0
):
for
sym
in
kwant
.
rmt
.
sym_list
:
if
kwant
.
rmt
.
p
(
sym
):
p_mat
=
np
.
array
(
kwant
.
rmt
.
h_p_matrix
[
sym
])
...
...
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