Skip to content

Commit

Permalink
Julia v1.0 Compatibility Updates (#9)
Browse files Browse the repository at this point in the history
* Use new Statistics standard library for mean, median, and std

* Include Base.IteratorsMD and Base.LinearIndices to replace ind2sub and sub2ind

* Update exported functions in QuantumBayesian.jl
  • Loading branch information
yosefrajwulf authored and justindressel committed Aug 19, 2018
1 parent 7ad9b60 commit cfc4ef4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/QuantumBayesian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ import Base.setindex!
import Base.ndims
import Base.indices
import Base.print_matrix
import Base.sub2ind
import Base.ind2sub
import Base.IteratorsMD
import Base.LinearIndices
import Base.map
import Base.mean
import Base.median
import Base.std
import Statistics.mean
import Statistics.median
import Statistics.std
###

#################################
Expand All @@ -46,7 +46,7 @@ abstract type QObj <: Any end
# Note implementation is light-weight, using mostly type aliases
# for the features in Base that do all the real work
const Time = Float64
const QComp = Complex128
const QComp = ComplexF64
const QName = AbstractString
const QOp = AbstractArray
const QKet = AbstractVector
Expand All @@ -69,7 +69,7 @@ include("QuantumEvolution.jl")
export Time, QObj, QComp, QInd, QName, QOp, QKet, QOps
# Quantum
export QFactor, QSpace, QView
export size, length, show, showarray, sub2ind, ind2sub, getindex, setindex!
export size, length, show, showarray, CartesianIndices, LinearIndices, getindex, setindex!
export name, factors, unview, subview
export superket, unsuperket, superopl, superopr
export , lift, ptrace, bra
Expand Down

0 comments on commit cfc4ef4

Please sign in to comment.