Author Topic: ExpressOperator and ShiftAndPolarizationOperatorBasis bug (SD 2.5.5)  (Read 2567 times)

MichaelTayler

  • Member
  • *
  • Posts: 14
    • View Profile
    • Visit my website
It appears that there is a bug with ExpressOperator handling ShiftAndPolarizationOperatorBasis in SD 2.55.  The result after evaluating

Code: [Select]
SetSpinSystem[1];
ExpressOperator[
 opI[1, "\[Alpha]"],
 ShiftAndPolarizationOperatorBasis[]
]

gives an operator with norm Sqrt[2], whereas the correct norm is 1.  For the following cases, however, everything works as expected, i.e. the operator norm is preserved:

Code: [Select]
ExpressOperator[
 opI[1, "z"],
 CartesianProductOperatorBasis[]
]

and

Code: [Select]
ExpressOperator[
 opI[1, "\[Alpha]"],
 CartesianProductOperatorBasis[]
]
« Last Edit: February 05, 2013, 12:12:30 PM by MichaelTayler »

MalcolmHLevitt

  • Administrator
  • Member
  • *****
  • Posts: 108
    • View Profile
Re: ExpressOperator and ShiftAndPolarizationOperatorBasis bug (SD 2.5.5)
« Reply #1 on: March 29, 2013, 01:21:01 PM »
This is indeed a disturbing bug, and it is still there in 2.6.0.

I have fixed the problem. The next release 2.6.1 will not experience this bug.
« Last Edit: April 02, 2013, 11:09:01 PM by MalcolmHLevitt »

MalcolmHLevitt

  • Administrator
  • Member
  • *****
  • Posts: 108
    • View Profile
Re: ExpressOperator and ShiftAndPolarizationOperatorBasis bug (SD 2.5.5)
« Reply #2 on: April 28, 2013, 04:42:58 PM »
A bug fix has been included in SDv2.6.1 which has now been released.