Skip to content

Commit

Permalink
Merge pull request #116 from ytdHuang/ci/spell-check
Browse files Browse the repository at this point in the history
Add spell check CI
  • Loading branch information
ytdHuang authored Nov 5, 2024
2 parents 5d3d499 + 5d25be2 commit 274e7fa
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 11 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/SpellCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Spell Check

on: [pull_request]

jobs:
typos-check:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/[email protected]
3 changes: 3 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[default.extend-words]
ket = "ket"
Commun = "Commun" # for journal abbreviation: Commun. Phys.
2 changes: 1 addition & 1 deletion docs/src/bath_boson/bosonic_bath_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ c_list = C(bath, tlist)
Here, `c_list` is a list which contains the value of ``C(t)`` corresponds to the given time series `tlist`.

## Exponent
`HierarchicalEOM.jl` also supports users to access the specific exponential term with brakets `[]`. This returns an [`Exponent`](@ref) object, which contains the corresponding value of ``\eta_i`` and ``\gamma_i``:
`HierarchicalEOM.jl` also supports users to access the specific exponential term with brackets `[]`. This returns an [`Exponent`](@ref) object, which contains the corresponding value of ``\eta_i`` and ``\gamma_i``:
```julia
e = bath[2] # the 2nd-term
print(e)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/bath_boson_RWA/bosonic_bath_RWA_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ cp_list, cm_list = C(bath, tlist)
Here, `cp_list` and `cm_list` are the lists which contain the value of ``C^{\nu=+}(t)`` and ``C^{\nu=-}(t)`` correspond to the given time series `tlist`, respectively.

## Exponent
`HierarchicalEOM.jl` also supports users to access the specific exponential term with brakets `[]`. This returns an [`Exponent`](@ref) object, which contains the corresponding value of ``\eta_i^\nu`` and ``\gamma_i^\nu``:
`HierarchicalEOM.jl` also supports users to access the specific exponential term with brackets `[]`. This returns an [`Exponent`](@ref) object, which contains the corresponding value of ``\eta_i^\nu`` and ``\gamma_i^\nu``:
```julia
e = bath[2] # the 2nd-term
print(e)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/bath_fermion/fermionic_bath_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ cp_list, cm_list = C(bath, tlist)
Here, `cp_list` and `cm_list` are the lists which contain the value of ``C^{\nu=+}(t)`` and ``C^{\nu=-}(t)`` correspond to the given time series `tlist`, respectively.

## Exponent
`HierarchicalEOM.jl` also supports users to access the specific exponential term with brakets `[]`. This returns an [`Exponent`](@ref) object, which contains the corresponding value of ``\eta_i^\nu`` and ``\gamma_i^\nu``:
`HierarchicalEOM.jl` also supports users to access the specific exponential term with brackets `[]`. This returns an [`Exponent`](@ref) object, which contains the corresponding value of ``\eta_i^\nu`` and ``\gamma_i^\nu``:
```julia
e = bath[2] # the 2nd-term
print(e)
Expand Down
2 changes: 1 addition & 1 deletion examples/cavityQED.jl
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Plots.xaxis!(L"\omega")
# ## Compare with Master Eq. approach
# (see also [HEOMLS for Master Equations](@ref doc-Master-Equation))
#
# The Lindblad master equations which describs the cavity couples to an extra bosonic reservoir with [Drude-Lorentzian spectral density](@ref Boson-Drude-Lorentz) is given by
# The Lindblad master equations which describes the cavity couples to an extra bosonic reservoir with [Drude-Lorentzian spectral density](@ref Boson-Drude-Lorentz) is given by

## Drude_Lorentzian spectral density
Drude_Lorentz(ω, Γ, W) = 4 * Γ * W * ω / ((ω)^2 + (W)^2)
Expand Down
4 changes: 2 additions & 2 deletions src/ADOs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ADOs(data::SparseVector{ComplexF64,Int64}, dims::AbstractVector, N::Int, parity:

@doc raw"""
ADOs(V, N, parity)
Gernerate the object of auxiliary density operators for HEOM model.
Generate the object of auxiliary density operators for HEOM model.
# Parameters
- `V::AbstractVector` : the vectorized auxiliary density operators
Expand All @@ -58,7 +58,7 @@ end

@doc raw"""
ADOs(ρ, N, parity)
Gernerate the object of auxiliary density operators for HEOM model.
Generate the object of auxiliary density operators for HEOM model.
# Parameters
- `ρ` : the reduced density operator
Expand Down
2 changes: 1 addition & 1 deletion src/bath/BosonBath.jl
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function bosonImag(op::QuantumObject, η_imag::Vector{Ti}, γ_imag::Vector{Tj})
end

@doc raw"""
sturct bosonRealImag <: AbstractBosonBath
struct bosonRealImag <: AbstractBosonBath
A bosonic bath which the real part and imaginary part of the bath correlation function are combined
# Fields
Expand Down
2 changes: 1 addition & 1 deletion src/bath/FermionBath.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ end
@doc raw"""
C(bath, tlist)
Calculate the correlation function ``C^{\nu=+}(t)`` and ``C^{\nu=-}(t)`` for a given fermionic bath and time list.
Here, ``\nu=+`` represents the absorption process and ``\nu=-`` represents the emmision process.
Here, ``\nu=+`` represents the absorption process and ``\nu=-`` represents the emission process.
```math
C^{\nu=\pm}(t)=\sum_i \eta_i^\nu e^{-\gamma_i^\nu t}
Expand Down
2 changes: 1 addition & 1 deletion src/heom_matrices/heom_matrix_base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ D_{\textrm{even}}[J](\cdot) = J(\cdot) J^\dagger - \frac{1}{2}\left(J^\dagger J
```
where ``J\equiv \sqrt{\gamma}V`` is the jump operator, ``V`` describes the dissipative part (operator) of the dynamics, ``\gamma`` represents a non-negative damping rate and ``[\cdot, \cdot]_+`` stands for anti-commutator.
Similary, the dissipator with `ODD` parity is defined as follows
Similarly, the dissipator with `ODD` parity is defined as follows
```math
D_{\textrm{odd}}[J](\cdot) = - J(\cdot) J^\dagger - \frac{1}{2}\left(J^\dagger J (\cdot) + (\cdot) J^\dagger J \right),
```
Expand Down
2 changes: 1 addition & 1 deletion test/ADOs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@test ρ_b[i] == ado
end

# expections for expect
# exceptions for expect
ados_wrong = ADOs(spzeros(Int64, 18), 2)
@test_throws ErrorException expect(Qobj([0 0 0; 0 0 0; 0 0 0]), ados_f)
@test_throws ErrorException expect(Qobj([0 0; 0 0]), [ados_b, ados_wrong])
Expand Down
2 changes: 1 addition & 1 deletion test/HEOMSuperOp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
@test WTD_heom[i] WTD_ans[i] atol = 1e-5
end

## test for ERRORs
## test for error
J_wrong1 = HEOMSuperOp(γ_eR * d, ODD, M_me, "L")
J_wrong2 = HEOMSuperOp(γ_eR * d, EVEN, M_heom, "L")
@test_throws ErrorException HEOMSuperOp(d, EVEN, M_heom, "LR")
Expand Down

0 comments on commit 274e7fa

Please sign in to comment.