File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5
5
6
6
---
7
7
8
- ## [ 0.7.1] ( https://github.com/BYUCamachoLab/simphony/tree/v0.7.0 ) - <small >2024-01-09</small >
8
+ ## [ 0.7.2] ( https://github.com/BYUCamachoLab/simphony/tree/v0.7.2 ) - <small >2024-01-09</small >
9
+
10
+ Minor bug fixes.
11
+
12
+ ### Fixed
13
+ - Bug in loss of waveguide in ideal library was fixed.
14
+
15
+ ---
16
+
17
+ ## [ 0.7.1] ( https://github.com/BYUCamachoLab/simphony/tree/v0.7.1 ) - <small >2024-01-09</small >
9
18
10
19
Minor bug fixes.
11
20
Original file line number Diff line number Diff line change @@ -86,7 +86,10 @@ def waveguide(
86
86
dneff_dwl = (ng - neff ) / wl0
87
87
_neff = neff - dwl * dneff_dwl
88
88
phase = 2 * jnp .pi * _neff * length / wl
89
- amplitude = jnp .asarray (10 ** (- loss * length / 20 ), dtype = complex )
89
+ # amplitude = jnp.asarray(10 ** (-loss * length / 20), dtype=complex)
90
+ loss_mag = loss / (10 * jnp .log10 (jnp .exp (1 )))
91
+ alpha = loss_mag * 1e-4
92
+ amplitude = jnp .asarray (jnp .exp (- alpha * length / 2 ), dtype = complex )
90
93
transmission = amplitude * jnp .exp (1j * phase )
91
94
sdict = sax .reciprocal (
92
95
{
You can’t perform that action at this time.
0 commit comments