Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MeanFi
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
MeanFi
Commits
494efe63
Commit
494efe63
authored
11 months ago
by
Johanna Zijderveld
Browse files
Options
Downloads
Patches
Plain Diff
forgotten rename
parent
1c0ad401
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
Interface refactoring
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
codes/tb/transforms.py
+3
-3
3 additions, 3 deletions
codes/tb/transforms.py
with
3 additions
and
3 deletions
codes/tb/transforms.py
+
3
−
3
View file @
494efe63
...
@@ -86,7 +86,7 @@ def ifftn_to_tb(ifft_array):
...
@@ -86,7 +86,7 @@ def ifftn_to_tb(ifft_array):
return
{
tuple
(
k
):
ifft_array
[
tuple
(
k
)]
for
k
in
keys
}
return
{
tuple
(
k
):
ifft_array
[
tuple
(
k
)]
for
k
in
keys
}
def
kfunc_to_kham
(
nk
,
h
k
,
dim
,
return_ks
=
False
,
hermitian
=
True
):
def
kfunc_to_kham
(
nk
,
k
func
,
dim
,
return_ks
=
False
,
hermitian
=
True
):
"""
"""
Evaluates Hamiltonian on a k-point grid.
Evaluates Hamiltonian on a k-point grid.
...
@@ -94,7 +94,7 @@ def kfunc_to_kham(nk, hk, dim, return_ks=False, hermitian=True):
...
@@ -94,7 +94,7 @@ def kfunc_to_kham(nk, hk, dim, return_ks=False, hermitian=True):
----------
----------
nk : int
nk : int
Number of k-points along each direction.
Number of k-points along each direction.
h
k : function
k
func
: function
Calculates the Hamiltonian at a given k-point.
Calculates the Hamiltonian at a given k-point.
return_ks : bool
return_ks : bool
If `True`, returns k-points.
If `True`, returns k-points.
...
@@ -119,7 +119,7 @@ def kfunc_to_kham(nk, hk, dim, return_ks=False, hermitian=True):
...
@@ -119,7 +119,7 @@ def kfunc_to_kham(nk, hk, dim, return_ks=False, hermitian=True):
kham
=
[]
kham
=
[]
for
k
in
it
.
product
(
*
k_pts
):
for
k
in
it
.
product
(
*
k_pts
):
kham
.
append
(
h
k
(
k
))
kham
.
append
(
k
func
(
k
))
kham
=
np
.
array
(
kham
)
kham
=
np
.
array
(
kham
)
if
hermitian
:
if
hermitian
:
assert
np
.
allclose
(
assert
np
.
allclose
(
...
...
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