Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Q
qsymm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Quantum Tinkerer
qsymm
Merge requests
!9
allow 'display_family' to work even in the absence of IPython
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
allow 'display_family' to work even in the absence of IPython
fixup/ipython
into
stable-1.2
Overview
0
Commits
2
Pipelines
2
Changes
2
Merged
Joseph Weston
requested to merge
fixup/ipython
into
stable-1.2
5 years ago
Overview
0
Commits
2
Pipelines
2
Changes
2
Expand
Closes
#11 (closed)
.
Edited
5 years ago
by
Joseph Weston
0
0
Merge request reports
Compare
stable-1.2
version 1
e83157b9
5 years ago
stable-1.2 (base)
and
latest version
latest version
81c8104f
2 commits,
5 years ago
version 1
e83157b9
2 commits,
5 years ago
2 files
+
15
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
qsymm/tests/test_hamiltonian_generator.py
+
5
−
1
Options
@@ -6,7 +6,7 @@ import scipy.linalg as la
from
..
import
kwant_rmt
from
..hamiltonian_generator
import
continuum_hamiltonian
,
check_symmetry
,
\
bloch_family
,
make_basis_pretty
,
constrain_family
,
continuum_variables
,
\
continuum_pairing
,
remove_duplicates
,
subtract_family
continuum_pairing
,
remove_duplicates
,
subtract_family
,
display_family
from
..groups
import
PointGroupElement
,
Model
,
time_reversal
,
chiral
,
rotation
from
..model
import
_commutative_momenta
,
Model
,
BlochModel
from
..linalg
import
nullspace
,
family_to_vectors
@@ -248,3 +248,7 @@ def test_pretty_basis():
else
:
assert
np
.
allclose
(
mat
/
mat
[
0
,
0
],
sz
),
'
Sparsification failed.
'
def
test_display_family_works
():
family
=
[
Model
({
"
k_x
"
:
np
.
identity
(
2
)})]
display_family
(
family
)
Loading