Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pygwinc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
gwinc
pygwinc
Commits
5ec93899
Commit
5ec93899
authored
4 years ago
by
Kevin Kuns
Browse files
Options
Downloads
Patches
Plain Diff
update for new precomp code
parent
4a595201
No related branches found
No related tags found
1 merge request
!94
Quantum noise sub-budgets
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gwinc/ifo/noises.py
+34
-56
34 additions, 56 deletions
gwinc/ifo/noises.py
gwinc/noise/quantum.py
+6
-1
6 additions, 1 deletion
gwinc/noise/quantum.py
with
40 additions
and
57 deletions
gwinc/ifo/noises.py
+
34
−
56
View file @
5ec93899
...
...
@@ -9,8 +9,9 @@ from .. import nb
from
..
import
noise
from
..
import
suspension
############################################################
#
precomp
functions
#
helper
functions
############################################################
...
...
@@ -168,23 +169,22 @@ def precomp_suspension(f, ifo):
def
precomp_quantum
(
f
,
ifo
):
if
'
gwinc
'
not
in
ifo
:
ifo
.
gwinc
=
Struct
(
)
ifo
.
gwinc
.
Quantum
=
Struct
(
)
noise_dict
=
noise
.
quantum
.
shotrad
(
f
,
ifo
)
ifo
.
gwinc
.
Quantum
.
ASvac
=
noise_dict
[
'
asvac
'
]
ifo
.
gwinc
.
Quantum
.
SRC
=
noise_dict
[
'
src
'
]
ifo
.
gwinc
.
Quantum
.
Arm
=
noise_dict
[
'
arm
'
]
ifo
.
gwinc
.
Quantum
.
Injection
=
noise_dict
[
'
injection
'
]
pc
=
Struct
()
power
=
precomp_power
(
f
,
ifo
)
mirror
=
precomp_mirror
(
f
,
ifo
)
noise_dict
=
noise
.
quantum
.
shotrad
(
f
,
ifo
,
mirror
.
ETM
.
MirrorMass
,
power
)
pc
.
ASvac
=
noise_dict
[
'
asvac
'
]
pc
.
SRC
=
noise_dict
[
'
src
'
]
pc
.
Arm
=
noise_dict
[
'
arm
'
]
pc
.
Injection
=
noise_dict
[
'
injection
'
]
# FC0 are the noises from the filter cavity losses and FC0_unsqzd_back
# are noises from the unsqueezed vacuum injected at the back mirror
# Right now there are at most one filter cavity in all the models;
# if there were two, there would also be FC1 and FC1_unsqzd_back, etc.
ifo
.
gwinc
.
Quantum
.
FC
=
noise_dict
[
'
FC0
'
]
+
noise_dict
[
'
FC0_unsqzd_back
'
]
ifo
.
gwinc
.
Quantum
.
PD
=
noise_dict
[
'
pd
'
]
pc
.
FC
=
noise_dict
[
'
FC0
'
]
+
noise_dict
[
'
FC0_unsqzd_back
'
]
pc
.
PD
=
noise_dict
[
'
pd
'
]
return
pc
##################################################
############################################################
# calibration
...
...
@@ -229,7 +229,6 @@ class Strain(nb.Calibration):
# quantum
#########################
class
QuantumVacuum
(
nb
.
Noise
):
"""
Quantum Vacuum
...
...
@@ -260,8 +259,9 @@ class QuantumVacuumAS(nb.Noise):
precomp_quantum
]
def
calc
(
self
):
return
self
.
ifo
.
gwinc
.
Quantum
.
ASvac
@nb.precomp
(
quantum
=
precomp_quantum
)
def
calc
(
self
,
quantum
):
return
quantum
.
ASvac
class
QuantumVacuumArm
(
nb
.
Noise
):
...
...
@@ -273,14 +273,9 @@ class QuantumVacuumArm(nb.Noise):
color
=
'
xkcd:orange brown
'
)
precomp
=
[
precomp_mirror
,
precomp_power
,
precomp_quantum
]
def
calc
(
self
):
return
self
.
ifo
.
gwinc
.
Quantum
.
Arm
@nb.precomp
(
quantum
=
precomp_quantum
)
def
calc
(
self
,
quantum
):
return
quantum
.
Arm
class
QuantumVacuumSRC
(
nb
.
Noise
):
...
...
@@ -298,8 +293,9 @@ class QuantumVacuumSRC(nb.Noise):
precomp_quantum
]
def
calc
(
self
):
return
self
.
ifo
.
gwinc
.
Quantum
.
SRC
@nb.precomp
(
quantum
=
precomp_quantum
)
def
calc
(
self
,
quantum
):
return
quantum
.
SRC
class
QuantumVacuumFilterCavity
(
nb
.
Noise
):
...
...
@@ -311,14 +307,9 @@ class QuantumVacuumFilterCavity(nb.Noise):
color
=
'
xkcd:goldenrod
'
)
precomp
=
[
precomp_mirror
,
precomp_power
,
precomp_quantum
]
def
calc
(
self
):
return
self
.
ifo
.
gwinc
.
Quantum
.
FC
@nb.precomp
(
quantum
=
precomp_quantum
)
def
calc
(
self
,
quantum
):
return
quantum
.
FC
class
QuantumVacuumInjection
(
nb
.
Noise
):
...
...
@@ -330,14 +321,9 @@ class QuantumVacuumInjection(nb.Noise):
color
=
'
xkcd:fuchsia
'
)
precomp
=
[
precomp_mirror
,
precomp_power
,
precomp_quantum
]
def
calc
(
self
):
return
self
.
ifo
.
gwinc
.
Quantum
.
Injection
@nb.precomp
(
quantum
=
precomp_quantum
)
def
calc
(
self
,
quantum
):
return
quantum
.
Injection
class
QuantumVacuumReadout
(
nb
.
Noise
):
...
...
@@ -349,14 +335,9 @@ class QuantumVacuumReadout(nb.Noise):
color
=
'
xkcd:mahogany
'
)
precomp
=
[
precomp_mirror
,
precomp_power
,
precomp_quantum
]
def
calc
(
self
):
return
self
.
ifo
.
gwinc
.
Quantum
.
PD
@nb.precomp
(
quantum
=
precomp_quantum
)
def
calc
(
self
,
quantum
):
return
quantum
.
PD
class
StandardQuantumLimit
(
nb
.
Noise
):
...
...
@@ -369,15 +350,14 @@ class StandardQuantumLimit(nb.Noise):
linestyle
=
"
:
"
,
)
precomp
=
[
precomp_
mirror
,
]
@nb.
precomp
(
mirror
=
precomp_mirror
)
def
calc
(
self
,
mirror
):
return
8
*
const
.
hbar
/
(
mirror
.
ETM
.
MirrorMass
*
(
2
*
np
.
pi
*
self
.
freq
)
**
2
)
def
calc
(
self
):
ETM
=
mirror_struct
(
self
.
ifo
,
'
ETM
'
)
return
8
*
const
.
hbar
/
(
ETM
.
MirrorMass
*
(
2
*
np
.
pi
*
self
.
freq
)
**
2
)
#########################
# seismic
#########################
...
...
@@ -492,7 +472,6 @@ class SuspensionThermal(nb.Noise):
# coating thermal
#########################
class
CoatingBrownian
(
nb
.
Noise
):
"""
Coating Brownian
...
...
@@ -545,7 +524,6 @@ class CoatingThermoOptic(nb.Noise):
# substrate thermal
#########################
class
ITMThermoRefractive
(
nb
.
Noise
):
"""
ITM Thermo-Refractive
...
...
This diff is collapsed.
Click to expand it.
gwinc/noise/quantum.py
+
6
−
1
View file @
5ec93899
...
...
@@ -89,7 +89,7 @@ def getSqzParams(ifo):
######################################################################
def
shotrad
(
f
,
ifo
):
def
shotrad
(
f
,
ifo
,
mirror_mass
,
power
):
"""
Quantum noise noise strain spectrum
:f: frequency array in Hz
...
...
@@ -128,6 +128,7 @@ def shotrad(f, ifo):
namespace
=
globals
()
fname
=
namespace
[
'
shotrad
'
+
ifo
.
Optics
.
Type
]
coeff
,
Mifo
,
Msig
,
Mn
=
fname
(
f
,
ifo
,
mirror_mass
,
power
)
Mnoise
=
dict
(
arm
=
Mn
[:,
:
2
,
:],
src
=
Mn
[:,
2
:,
:])
#####################################################
# Readout
...
...
@@ -302,6 +303,10 @@ def compile_SEC_RES_TF():
print
(
'
RES
'
,
'
=
'
,
str
(
SEC_RES_expr
[
0
]).
replace
(
'
Matrix
'
,
'
np.array
'
))
######################################################################
# Main IFO quantum models
######################################################################
def
shotradSignalRecycled
(
f
,
ifo
,
mirror_mass
,
power
):
"""
Quantum noise model for signal recycled IFO (see shotrad for more info)
...
...
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