Skip to content

Commit 0d53916

Browse files
authored
build: add spelling checker (#248)
1 parent 1635f79 commit 0d53916

26 files changed

+93
-65
lines changed

.github/workflows/SpellCheck.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Spell Check
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- ready_for_review
10+
11+
jobs:
12+
typos-check:
13+
name: Spell Check with Typos
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Actions Repository
17+
uses: actions/checkout@v4
18+
- name: Check spelling
19+
uses: crate-ci/[email protected]

.typos.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[default.extend-words]
2+
ket = "ket"
3+
Ket = "Ket"
4+
pn = "pn"
5+
ba = "ba"
6+
7+
[type.ipynb]
8+
extend-glob = ["*.ipynb"]
9+
check-file = false

docs/src/examples/cavity_antiresonance_indexed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cavity Antiresonance
22

3-
In this example we investigate a system of $N$ closely spaced quantum emitters inside a coherently driven single mode cavity. The model is descriped in [D. Plankensteiner, et. al., Phys. Rev. Lett. 119, 093601 (2017)](https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.119.093601).
3+
In this example we investigate a system of $N$ closely spaced quantum emitters inside a coherently driven single mode cavity. The model is described in [D. Plankensteiner, et. al., Phys. Rev. Lett. 119, 093601 (2017)](https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.119.093601).
44
The Hamiltonian of this system is composed of three parts $H = H_c + H_a + H_{\mathrm{int}}$, the driven cavity $H_c$, the dipole-dipole interacting atoms $H_a$ and the atom-cavity interaction $H_\mathrm{int}$:
55

66
```math

docs/src/examples/filter-cavity_indexed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ We create the parameters of the system including the $\texttt{IndexedVariable}$
2525

2626

2727
```@example filter_cavity_indexed
28-
# Paramters
28+
# Parameters
2929
@cnumbers κ g gf κf R Γ Δ ν N M
3030
δ(i) = IndexedVariable(:δ, i)
3131

docs/src/examples/heterodyne_detection.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ scaled_eqs = scale(eqs_c)
8888
```
8989

9090
# Deterministic time evolution
91-
Here we define the actual values for the system parameters. We then show that the deterministic time evolution without the noise terms is still accesible by using the constructor ODESystem for the stochastic system of equations and the syntax for the simulation of the time evolution is as usual.
91+
Here we define the actual values for the system parameters. We then show that the deterministic time evolution without the noise terms is still accessible by using the constructor ODESystem for the stochastic system of equations and the syntax for the simulation of the time evolution is as usual.
9292

9393

9494
```julia
@@ -110,7 +110,7 @@ xlabel("Time (ms)")
110110
```
111111

112112
# Stochastic time evolution
113-
The stochastic time evolution is accesible via the constructor SDESystem, whose syntax is exactly the same as for the ODESystem, but with keyword args as defined in https://docs.sciml.ai/DiffEqDocs/stable/tutorials/sde_example/. We then need to provide a noise process for the measurement. If the noise is white the appropriate noise process is a Wiener process. The SDEProblem is then constructed just as the ODEProblem, but with an additional noise argument.
113+
The stochastic time evolution is accessible via the constructor SDESystem, whose syntax is exactly the same as for the ODESystem, but with keyword args as defined in https://docs.sciml.ai/DiffEqDocs/stable/tutorials/sde_example/. We then need to provide a noise process for the measurement. If the noise is white the appropriate noise process is a Wiener process. The SDEProblem is then constructed just as the ODEProblem, but with an additional noise argument.
114114

115115
We can then make use of the EnsembleProblem which automatically runs multiple instances of the stochastic equations of motion. The number of trajectories can then be set in the solve call. See the documentation cited above for more details of the function calls here.
116116

@@ -126,7 +126,7 @@ sol = solve(eprob,StochasticDiffEq.EM(), dt = 1e-9, save_noise=true,trajectories
126126
```
127127

128128
# Plot the average of the cavity number
129-
Here we plot the average of the cavity number for the stochastic and determinstic equation of motion with the trajectories in grey in the background. We can see that the dynamics of the system is indeed modified by the measurement backaction.
129+
Here we plot the average of the cavity number for the stochastic and deterministic equation of motion with the trajectories in grey in the background. We can see that the dynamics of the system is indeed modified by the measurement backaction.
130130

131131

132132
```julia

docs/src/examples/jupyter_notebooks/cavity_antiresonance.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Cavity Antiresonance\n",
88
"\n",
9-
"In this example we investigate a system of $N$ closely spaced quantum emitters inside a coherently driven single mode cavity. The model is descriped in [D. Plankensteiner, et. al., Phys. Rev. Lett. 119, 093601 (2017)](https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.119.093601).\n",
9+
"In this example we investigate a system of $N$ closely spaced quantum emitters inside a coherently driven single mode cavity. The model is described in [D. Plankensteiner, et. al., Phys. Rev. Lett. 119, 093601 (2017)](https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.119.093601).\n",
1010
"The Hamiltonian of this system is composed of three parts $H = H_c + H_a + H_{\\mathrm{int}}$, the driven cavity $H_c$, the dipole-dipole interacting atoms $H_a$ and the atom-cavity interaction $H_\\mathrm{int}$:\n",
1111
"\n",
1212
"```math\n",

docs/src/examples/jupyter_notebooks/cavity_antiresonance_indexed.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"cell_type": "markdown",
1212
"metadata": {},
1313
"source": [
14-
"In this example we investigate a system of $N$ closely spaced quantum emitters inside a coherently driven single mode cavity. The model is descriped in [D. Plankensteiner, et. al., Phys. Rev. Lett. 119, 093601 (2017)](https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.119.093601).\n",
14+
"In this example we investigate a system of $N$ closely spaced quantum emitters inside a coherently driven single mode cavity. The model is described in [D. Plankensteiner, et. al., Phys. Rev. Lett. 119, 093601 (2017)](https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.119.093601).\n",
1515
"The Hamiltonian of this system is composed of three parts $H = H_c + H_a + H_{\\mathrm{int}}$, the driven cavity $H_c$, the dipole-dipole interacting atoms $H_a$ and the atom-cavity interaction $H_\\mathrm{int}$:"
1616
]
1717
},

docs/src/examples/jupyter_notebooks/filter-cavity_indexed.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
}
7878
],
7979
"source": [
80-
"# Paramters\n",
80+
"# Parameters\n",
8181
"@cnumbers κ g gf κf R Γ Δ ν N M\n",
8282
"δ(i) = IndexedVariable(:δ, i)\n",
8383
"\n",

docs/src/examples/jupyter_notebooks/heterodyne_detection.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395
"metadata": {},
396396
"source": [
397397
"# Deterministic time evolution\n",
398-
"Here we define the actual values for the system parameters. We then show that the deterministic time evolution without the noise terms is still accesible by using the constructor ODESystem for the stochastic system of equations and the syntax for the simulation of the time evolution is as usual."
398+
"Here we define the actual values for the system parameters. We then show that the deterministic time evolution without the noise terms is still accessible by using the constructor ODESystem for the stochastic system of equations and the syntax for the simulation of the time evolution is as usual."
399399
]
400400
},
401401
{
@@ -439,7 +439,7 @@
439439
"metadata": {},
440440
"source": [
441441
"# Stochastic time evolution\n",
442-
"The stochastic time evolution is accesible via the constructor SDESystem, whose syntax is exactly the same as for the ODESystem, but with keyword args as defined in https://docs.sciml.ai/DiffEqDocs/stable/tutorials/sde_example/. We then need to provide a noise process for the measurement. If the noise is white the appropriate noise process is a Wiener process. The SDEProblem is then constructed just as the ODEProblem, but with an additional noise argument.\n",
442+
"The stochastic time evolution is accessible via the constructor SDESystem, whose syntax is exactly the same as for the ODESystem, but with keyword args as defined in https://docs.sciml.ai/DiffEqDocs/stable/tutorials/sde_example/. We then need to provide a noise process for the measurement. If the noise is white the appropriate noise process is a Wiener process. The SDEProblem is then constructed just as the ODEProblem, but with an additional noise argument.\n",
443443
"\n",
444444
"We can then make use of the EnsembleProblem which automatically runs multiple instances of the stochastic equations of motion. The number of trajectories can then be set in the solve call. See the documentation cited above for more details of the function calls here."
445445
]
@@ -474,7 +474,7 @@
474474
"metadata": {},
475475
"source": [
476476
"# Plot the average of the cavity number\n",
477-
"Here we plot the average of the cavity number for the stochastic and determinstic equation of motion with the trajectories in grey in the background. We can see that the dynamics of the system is indeed modified by the measurement backaction."
477+
"Here we plot the average of the cavity number for the stochastic and deterministic equation of motion with the trajectories in grey in the background. We can see that the dynamics of the system is indeed modified by the measurement backaction."
478478
]
479479
},
480480
{

docs/src/examples/jupyter_notebooks/unique_squeezing.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"ha = NLevelSpace(Symbol(:spin),2)\n",
6868
"h = hf ⊗ ha\n",
6969
"\n",
70-
"# Paramter\n",
70+
"# Parameter\n",
7171
"@cnumbers ω Ω ωd η κ g γ N ξ\n",
7272
"@syms t::Real # time\n",
7373
"nothing # hide"
@@ -287,7 +287,7 @@
287287
"cell_type": "markdown",
288288
"metadata": {},
289289
"source": [
290-
"For a suffeciently low excitation we can adiabatically elminate the dynamics of the two-level system(s). This leads to an effective Hamiltonian "
290+
"For a suffeciently low excitation we can adiabatically eliminate the dynamics of the two-level system(s). This leads to an effective Hamiltonian "
291291
]
292292
},
293293
{

0 commit comments

Comments
 (0)