Skip to content

Commit

Permalink
Update SecondQuantization.m
Browse files Browse the repository at this point in the history
fixing WeakOrdering SqueezeOperator
  • Loading branch information
BrunoQNF committed Sep 9, 2024
1 parent 0585c17 commit b640728
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions QuantumFramework/Kernel/SecondQuantization.m
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,11 @@
@ a)]
,
"WeakOrdering",
Exp[1/2 (xi (a["Dagger"] @ a["Dagger"]) - Conjugate[xi
] (a @ a))]
Exp[1/2 (Conjugate[xi] (a @ a) - xi (a["Dagger"] @ a["Dagger"]))]
,
"AntinormalOrdering",
Exp[Conjugate[tau] / 2 (a @ a)] @ Exp[nu ((a["Dagger"
]) @ a + 1/2 identityOp)] @ Exp[-tau / 2 ((a["Dagger"]) @ (a["Dagger"
Exp[1/2 Conjugate[tau] (a @ a)] @ Exp[nu ((a["Dagger"
]) @ a + 1/2 identityOp)] @ Exp[-1/2 tau ((a["Dagger"]) @ (a["Dagger"
]))]
,
_,
Expand Down

0 comments on commit b640728

Please sign in to comment.