diff --git a/src/arrays/ladderops.jl b/src/arrays/ladderops.jl index 65f71a7..db6dcff 100644 --- a/src/arrays/ladderops.jl +++ b/src/arrays/ladderops.jl @@ -38,8 +38,8 @@ function momentumop(n::Int) end squeeze_construct(a::AbstractQuMatrix,b::AbstractQuMatrix, z::Number) = scale!(0.5,(scale!(z',a*b)-scale!(z,a'*b'))) -squeezing(a::AbstractQuMatrix, b::AbstractQuMatrix, z::Number) = expm(squeeze_construct(a,b,z)) -squeeze(n::Int,z::Number) = squeezing(lowerop(n),lowerop(n),z) +squeezingop(a::AbstractQuMatrix, b::AbstractQuMatrix, z::Number) = expm(squeeze_construct(a,b,z)) +squeezingop(n::Int,z::Number) = squeezingop(lowerop(n),lowerop(n),z) displaceop(n::Int,alpha::Number) = expm(scale!(alpha,lowerop(n)')-scale!(alpha',lowerop(n))) @@ -47,6 +47,5 @@ export raiseop, lowerop, positionop, momentumop, - squeezing, - squeeze, + squeezingop, displaceop diff --git a/test/operatortest.jl b/test/operatortest.jl index de1974e..b58bdce 100644 --- a/test/operatortest.jl +++ b/test/operatortest.jl @@ -23,6 +23,6 @@ m = momentumop(2) # Squeeze, Squeezing Operators Test # ##################################### -@assert squeeze(2,1.0)== QuArray(eye(2)) -@assert squeezing(lowerop(2), lowerop(2), 1.0) == squeeze(2,1) +@assert squeezingop(2,1.0)== QuArray(eye(2)) +@assert squeezingop(lowerop(2), lowerop(2), 1.0) == squeezingop(2,1)