bao

25 Reputation

One Badge

11 years, 83 days

MaplePrimes Activity


These are questions asked by bao

Hi, everyone.

I want to setup some conjugate rules for the quantum operator such as

conjugate(a) = a, conjugate(b) = -b.

And during the calculation progress, it works like

conjugate( k1*a + k2*conjugate(b) ) = conjugate(k1)*a + conjugate(k2)*b

#k1, k2 are complex numbers.

How can we build up this? I checked in the help system, but failed to find an answer.

Hello, everyone. I faced some promblems on maple. Hope you can help me.

I want to set up the commutation rules like Pauli sigma matrix in Physics Packages,

but failed to get the correct one.

Here is my maple code:

restart;
with(Physics);
Setup(mathematicalnotation = true);

Setup(quantumop = {Q}, algebrarule = {%AntiCommutator(Q[j], Q[k]) = 2*KroneckerDelta[j, k], %Commutator(Q[j], Q[k]) = 2*I*(Sum(LeviCivita[i, k, l]*Q[l], l = 1 .. 3))});

Commutator(Q[1], Q[2]);
                              
AntiCommutator(Q[1], Q[2]);
                              
AntiCommutator(Q[1], Q[1]);
                              
Commutator(Q[1], Q[1]);

In fact, Commutator(Q[1], Q[2]) give a incorrect result 0 while the correct answer is  2*I*Q[3].

Do anyone know how to resolve this?

Page 1 of 1