Skip to content

Commit

Permalink
Edit in testing, internal structure test.
Browse files Browse the repository at this point in the history
  • Loading branch information
amitjamadagni committed Apr 19, 2015
1 parent be7e3ce commit 0b1b090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/operatortest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ m = momentumop(2)

sv1 = [0.5403023058681398,0.8414709848078965]
sv2 = [0.5403023058681398 + 0.0im,0.0 + 0.8414709848078965im]
@assert displaceop(2,1)*statevec(1,FiniteBasis(2)) == QuArray(sv1)
@assert displaceop(2,1*im)*statevec(1,FiniteBasis(2)) == QuArray(sv2)
@assert displaceop(2,1)*statevec(1,FiniteBasis(2)) === QuArray(sv1)
@assert displaceop(2,1*im)*statevec(1,FiniteBasis(2)) === QuArray(sv2)

############################
# Squeezing Operators Test #
Expand Down

0 comments on commit 0b1b090

Please sign in to comment.