API Reference
sipkit.effective_index
sipkit.effective_index.neff(width, wavelength)
Gets Effective Index value by using corresponding parameters. This is a JAX compatible function. JIT is enabled.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
width |
float
|
Waveguide width in microns. (0.24 - 0.7) Scalar or list |
required |
wavelength |
float
|
Wavelength in microns. (1.2 - 1.7) Scalar or list |
required |
Returns:
| Type | Description |
|---|---|
float | list[float]
|
Effective Index value(s). |
Examples:
>>> neff(0.5, 1.5)
array(2.)
>>> neff(0.5, [1.5, 1.6])
array([2. , 2.1])
>>> neff([0.5, 0.6], 1.5)
array([2. , 1.9])
>>> neff([0.5, 0.6], [1.5, 1.6])
array([[2. , 2.1],
>>> neff(0.5, [[1.5, 1.6], [1.7, 1.8]])
array([[2. , 2.1],
[1.9, 2. ]])
>>> neff([[0.5, 0.6], [0.7, 0.8]], 1.5)
array([[2. , 1.9],
[1.8, 1.7]])
>>> waveguide_width = jnp.array([0.5, 0.6])
>>> wavelength = np.array([1.5, 1.6, 1.7])
>>> waveguide_width, wavelength = np.meshgrid(waveguide_width, wavelength)
>>> neff(waveguide_width, wavelength)
array([[2. , 2.1],
[1.9, 2. ],
[1.8, 1.9]])
Source code in sipkit/effective_index.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
sipkit.effective_index.neff_te0(width, wavelength)
Gets Effective Index value of TE0 by using corresponding parameters. This is a JAX compatible function. JIT is enabled.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
width |
float
|
Waveguide width in microns. (0.24 - 0.7) Scalar or list |
required |
wavelength |
float
|
Wavelength in microns. (1.2 - 1.7) Scalar or list |
required |
Returns:
| Type | Description |
|---|---|
float | list[float]
|
Effective Index value(s). |
Source code in sipkit/effective_index.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |
sipkit.effective_index.neff_te1(width, wavelength)
Gets Effective Index value of TE1 by using corresponding parameters. This is a JAX compatible function. JIT is enabled.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
width |
float
|
Waveguide width in microns. (0.24 - 0.7) Scalar or list |
required |
wavelength |
float
|
Wavelength in microns. (1.2 - 1.7) Scalar or list |
required |
Returns:
| Type | Description |
|---|---|
float | list[float]
|
Effective Index value(s). |
Source code in sipkit/effective_index.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | |
sipkit.effective_index.neff_te2(width, wavelength)
Gets Effective Index value of TE2 by using corresponding parameters. This is a JAX compatible function. JIT is enabled.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
width |
float
|
Waveguide width in microns. (0.24 - 0.7) Scalar or list |
required |
wavelength |
float
|
Wavelength in microns. (1.2 - 1.7) Scalar or list |
required |
Returns:
| Type | Description |
|---|---|
float | list[float]
|
Effective Index value(s). |
Source code in sipkit/effective_index.py
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | |
sipkit.effective_index.neff_tm0(width, wavelength)
Gets Effective Index value of TM0 by using corresponding parameters. This is a JAX compatible function. JIT is enabled.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
width |
float
|
Waveguide width in microns. (0.24 - 0.7) Scalar or list |
required |
wavelength |
float
|
Wavelength in microns. (1.2 - 1.7) Scalar or list |
required |
Returns:
| Type | Description |
|---|---|
float | list[float]
|
Effective Index value(s). |
Source code in sipkit/effective_index.py
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
sipkit.effective_index.neff_tm1(width, wavelength)
Gets Effective Index value of TM1 by using corresponding parameters. This is a JAX compatible function. JIT is enabled.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
width |
float
|
Waveguide width in microns. (0.24 - 0.7) Scalar or list |
required |
wavelength |
float
|
Wavelength in microns. (1.2 - 1.7) Scalar or list |
required |
Returns:
| Type | Description |
|---|---|
float | list[float]
|
Effective Index value(s). |
Source code in sipkit/effective_index.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | |
sipkit.permittivity
sipkit.permittivity.perm_oxide(wavelength)
Permittivity value of SiO2 at given wavelength.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wavelength |
float
|
Wavelength in microns. (1.2 - 1.7) Scalar or list |
required |
Returns:
| Type | Description |
|---|---|
float | list[float]
|
Permittivity value(s). |
Raises:
| Type | Description |
|---|---|
ValueError
|
If wavelength is not between 1.2-1.7 microns. |
Examples:
>>> perm_oxide(1.5)
3.44
>>> perm_oxide([1.5, 1.6])
[3.44, 3.44]
>>> perm_oxide(1.8)
Traceback (most recent call last):
...
ValueError: Wavelength must be between 1.2-1.7 micron
Source code in sipkit/permittivity.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |
sipkit.permittivity.perm_si(wavelength)
Permittivity value of Si at given wavelength.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wavelength |
float
|
Wavelength in microns. (1.2 - 1.7) Scalar or list |
required |
Returns:
| Type | Description |
|---|---|
float | list[float]
|
Permittivity value(s). |
Raises:
| Type | Description |
|---|---|
ValueError
|
If wavelength is not between 1.2-1.7 microns. |
Examples:
>>> perm_si(1.5)
11.68
>>> perm_si([1.5, 1.6])
[11.68, 11.68]
>>> perm_si(1.8)
Traceback (most recent call last):
...
ValueError: Wavelength must be between 1.2-1.7 micron
Source code in sipkit/permittivity.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |
sipkit.util
by
Created: 2022-12-07