-
Notifications
You must be signed in to change notification settings - Fork 4
/
laser.py
27 lines (20 loc) · 896 Bytes
/
laser.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python
from __future__ import division, absolute_import, print_function, unicode_literals
from numpy import pi
class Laser:
def __init__(self, **kwargs):
self.ion_num = kwargs['ion_num']
self.sideband_num = kwargs['sideband_num']
self.intensity = kwargs['intensity']
self.detuning = kwargs['detuning']
self.phase = kwargs['phase']
self.eta = 0.05
class Pulse:
def __init__(self, **kwargs):
self.ion_num = kwargs['ion_num']
self.sideband_num = kwargs['sideband_num']
self.intensity = kwargs['intensity']
self.duration = kwargs['duration']
self.phase = kwargs['phase']
self.detuning = kwargs['detuning']
self.eta = 0.05