Skip to content

Commit 79d33aa

Browse files
committed
Workaround for UndefVarError bug
1 parent c6fa3f5 commit 79d33aa

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "QuantumOpticsBase"
22
uuid = "4f57444f-1401-5e15-980d-4471b28d5678"
3-
version = "v0.2.2"
3+
version = "v0.2.3"
44

55
[deps]
66
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"

src/fock.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ included fock state is. Note that the dimension of this basis then is N+1.
77
struct FockBasis{T} <: Basis
88
shape::Vector{T}
99
N::T
10-
function FockBasis(N::T) where T<:Int
10+
function FockBasis(N::T) where T<:Integer
1111
if N < 0
1212
throw(DimensionMismatch())
1313
end

src/nlevel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Basis for a system consisting of N states.
66
struct NLevelBasis{T} <: Basis
77
shape::Vector{T}
88
N::T
9-
function NLevelBasis(N::T) where T<:Int
9+
function NLevelBasis(N::T) where T<:Integer
1010
if N < 1
1111
throw(DimensionMismatch())
1212
end

src/pauli.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The dimension of the basis is 2²ᴺ.
99
struct PauliBasis{S,B<:Tuple{Vararg{Basis}}} <: Basis
1010
shape::S
1111
bases::B
12-
function PauliBasis(num_qubits::T) where {T<:Int}
12+
function PauliBasis(num_qubits::T) where {T<:Integer}
1313
shape = [2 for _ in 1:num_qubits]
1414
bases = Tuple(SpinBasis(1//2) for _ in 1:num_qubits)
1515
return new{typeof(shape),typeof(bases)}(shape, bases)

0 commit comments

Comments
 (0)