Hello All 

     I have been working on some Quantum Problems and have not been able to get 
PDL to produce the right results 
for the Pauli matrices ...
          (($x x $y) - ($y x $x)) = $z ;  (($y x $z) - ($z x $y)) = $x;   (($z 
x $x)  -  ($x x $z)) = $y; 
  where       $x = [ 0  1 ]       $y = [ 0  -i ]      $z = [ 1  0 ]
                             [ 1  0 ]               [ i   0 ]               [ 0 
 1 ]

          yet when I try to enter -i I get this use PDL::Complex;
pdl> p $y = pdl( [ 0, -i ] , [ i, 0 ] );
Ambiguous use of -i resolved as -&i() at (eval 91) line 4.

[
 [
  [ 0  0]
  [ 0 -1]
 ]
 [
  [0 1]
  [0 0]
 ]
]

and here is the answer i get when trying to use it ...
pdl> p  (($z x $x) - ($x x $z))

[
 [ 0  2]
 [-2  0]
]

this should be ...

[  0  -i ]
[  i   0 ]
and ....
pdl> p (($x x $y) - ($y x $x));

[
 [
  [ 0 -1]
  [ 1  0]
 ]
 [
  [-1  0]
  [ 0  1]
 ]
]

I have two answers for this yet the one answer should be ...

[ 1  0 ][ 0 -1 ]
Can any one help explain why     (($x x $y) - ($y x $x)) = $z ;  (($y x $z) - 
($z x $y)) = $x;   (($z x $x)  -  ($x x $z)) = $y;is not working right here ???
Warm Regards,
-Mark



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general

Reply via email to