From 0b1b0903820196663ca5d0f5516458111a799870 Mon Sep 17 00:00:00 2001 From: amitjamadagni Date: Sun, 19 Apr 2015 05:48:48 +0530 Subject: [PATCH] Edit in testing, internal structure test. --- test/operatortest.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/operatortest.jl b/test/operatortest.jl index 9466a19..d020889 100644 --- a/test/operatortest.jl +++ b/test/operatortest.jl @@ -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 #