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
859d4788
Commit
859d4788
authored
7 years ago
by
Joseph Weston
Browse files
Options
Downloads
Patches
Plain Diff
fix backticks to stop sphinx complaining
parent
b2f503d7
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/continuum/_common.py
+3
-3
3 additions, 3 deletions
kwant/continuum/_common.py
with
3 additions
and
3 deletions
kwant/continuum/_common.py
+
3
−
3
View file @
859d4788
...
...
@@ -87,8 +87,8 @@ def lambdify(hamiltonian, subs=None):
def
sympify
(
expr
,
subs
=
None
):
"""
Sympify object using special rules for Hamiltonians.
If `expr` is a string, all keys in `subs` must be strings as well. In a
first step, all values of `subs` are sympified. Then, `subs` is used as
If
`
`expr`
`
is a string, all keys in
`
`subs`
`
must be strings as well. In a
first step, all values of
`
`subs`
`
are sympified. Then, `subs` is used as
the ``locals`` argument in an internal call to ``sympy.sympify``. The
``locals`` namespace is pre-populated such that
...
...
@@ -97,7 +97,7 @@ def sympify(expr, subs=None):
* all single-letter identifiers and names of greek letters (e.g.
"
pi
"
or
"
gamma
"
) are treated as symbols,
*
"
kron
"
corresponds to ``sympy.physics.quantum.TensorProduct``, and
"
identity
"
to `sympy.eye`,
"
identity
"
to
`
`sympy.eye`
`
,
*
"
sigma_0
"
,
"
sigma_x
"
,
"
sigma_y
"
,
"
sigma_z
"
are the Pauli matrices.
In addition, Python list literals are interpreted as SymPy matrices.
...
...
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