Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
ift
NIFTy
Commits
e808fff0
Commit
e808fff0
authored
Jul 24, 2019
by
Philipp Arras
Browse files
Cosmetics
parent
c1c46603
Pipeline
#52372
passed with stages
in 8 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty5/probing.py
View file @
e808fff0
...
...
@@ -15,9 +15,10 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from
.multi_field
import
MultiField
from
.operators.endomorphic_operator
import
EndomorphicOperator
from
.operators.operator
import
Operator
from
.sugar
import
from_random
from
.sugar
import
from_global_data
,
from_random
class
StatCalculator
(
object
):
...
...
@@ -137,8 +138,6 @@ def probe_diagonal(op, nprobes, random_type="pm1"):
def
approximation2endo
(
op
,
nsamples
):
from
.sugar
import
from_global_data
from
.multi_field
import
MultiField
sc
=
StatCalculator
()
for
_
in
range
(
nsamples
):
sc
.
add
(
op
.
draw_sample
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment