Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
EigenSolver committed Jul 11, 2024
1 parent 02f1169 commit 929f52f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/SpinShuttling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ specified by the paths of the shuttled spins.
# Arguments
- `n::Int`: Number of spins
- `Ψ::Vector{<:Number}`: Initial state of the spin system, the length of the vector must be `2^n
- `Ψ::Vector{<:Complex}`: Initial state of the spin system, the length of the vector must be `2^n
- `T::Real`: Maximum time
- `N::Int`: Time discretization
- `B::GaussianRandomField`: Noise field
Expand All @@ -34,7 +34,7 @@ specified by the paths of the shuttled spins.
"""
struct ShuttlingModel
n::Int # number of spins
Ψ::Vector{<:Number}
Ψ::Vector{<:Complex}
T::Real # time
N::Int # Time discretization
B::GaussianRandomField # Noise field
Expand Down Expand Up @@ -64,13 +64,13 @@ General one spin shuttling model initialized at initial state |Ψ₀⟩,
with arbitrary shuttling path x(t).
# Arguments
- `Ψ::Vector{<:Number}`: Initial state of the spin system, the length of the vector must be `2^n
- `Ψ::Vector{<:Complex}`: Initial state of the spin system, the length of the vector must be `2^n
- `T::Real`: Maximum time
- `N::Int`: Time discretization
- `B::GaussianRandomField`: Noise field
- `x::Function`: Shuttling path
"""
function OneSpinModel::Vector{<:Number}, T::Real, N::Int,
function OneSpinModel::Vector{<:Complex}, T::Real, N::Int,
B::GaussianRandomField, x::Function)

t = range(0, T, N)
Expand Down Expand Up @@ -117,14 +117,14 @@ General two spin shuttling model initialized at initial state |Ψ₀⟩,
with arbitrary shuttling paths x₁(t), x₂(t).
# Arguments
- `Ψ::Vector{<:Number}`: Initial state of the spin system, the length of the vector must be `2^n
- `Ψ::Vector{<:Complex}`: Initial state of the spin system, the length of the vector must be `2^n
- `T::Real`: Maximum time
- `N::Int`: Time discretization
- `B::GaussianRandomField`: Noise field
- `x₁::Function`: Shuttling path for the first spin
- `x₂::Function`: Shuttling path for the second spin
"""
function TwoSpinModel::Vector{<:Number}, T::Real, N::Int,
function TwoSpinModel::Vector{<:Complex}, T::Real, N::Int,
B::GaussianRandomField, x₁::Function, x₂::Function)

X = [x₁, x₂]
Expand Down

0 comments on commit 929f52f

Please sign in to comment.