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
!28
attempt to fix E
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
attempt to fix E
issue-48
into
master
Overview
0
Commits
4
Pipelines
9
Changes
4
Merged
Anton Akhmerov
requested to merge
issue-48
into
master
1 year ago
Overview
0
Commits
4
Pipelines
9
Changes
4
Expand
0
0
Merge request reports
Compare
master
version 8
6acfba50
1 year ago
version 7
8ef6238f
1 year ago
version 6
0befa493
1 year ago
version 5
98a91f4b
1 year ago
version 4
f5a7d052
1 year ago
version 3
272db578
1 year ago
version 2
58b260d9
1 year ago
version 1
e49bd936
1 year ago
master (base)
and
latest version
latest version
5761c687
4 commits,
1 year ago
version 8
6acfba50
3 commits,
1 year ago
version 7
8ef6238f
2 commits,
1 year ago
version 6
0befa493
1 commit,
1 year ago
version 5
98a91f4b
1 commit,
1 year ago
version 4
f5a7d052
1 commit,
1 year ago
version 3
272db578
1 commit,
1 year ago
version 2
58b260d9
1 commit,
1 year ago
version 1
e49bd936
1 commit,
1 year ago
4 files
+
13
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
qsymm/kwant_continuum.py
+
3
−
0
Options
@@ -51,6 +51,7 @@ import warnings
momentum_operators
=
sympy
.
symbols
(
'
k_x k_y k_z
'
,
commutative
=
False
)
position_operators
=
sympy
.
symbols
(
'
x y z
'
,
commutative
=
False
)
e
=
sympy
.
symbols
(
'
e
'
,
positive
=
True
)
pauli
=
[
sympy
.
eye
(
2
),
_msigma
(
1
),
_msigma
(
2
),
_msigma
(
3
)]
@@ -217,6 +218,8 @@ def sympify(expr, locals=None):
# sympify we are getting list of sympy objects, so we call sympify
# second time to obtain ``sympy`` matrices.
hamiltonian
=
sympy
.
sympify
(
hamiltonian
)
# A workaround for qsymm issue #48
hamiltonian
=
hamiltonian
.
subs
(
sympy
.
sympify
(
'
e
'
),
e
)
finally
:
if
stored_value
is
not
None
:
converter
[
list
]
=
stored_value
Loading