File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11name = " QuantumOpticsBase"
22uuid = " 4f57444f-1401-5e15-980d-4471b28d5678"
3- version = " v0.2.2 "
3+ version = " v0.2.3 "
44
55[deps ]
66FFTW = " 7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ included fock state is. Note that the dimension of this basis then is N+1.
77struct 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
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Basis for a system consisting of N states.
66struct 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
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ The dimension of the basis is 2²ᴺ.
99struct 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)
You can’t perform that action at this time.
0 commit comments