Fix: Unitary Decomposition -> Conj inplace not handled correct
This commit is contained in:
@@ -5,7 +5,6 @@ using Skeleton.Algebra.Extensions;
|
||||
using Skeleton.Samples;
|
||||
using Skeleton.Utils;
|
||||
using Skeleton.Utils.Helpers;
|
||||
using Skeleton.Utils.RandomEngines;
|
||||
|
||||
namespace Skeleton.Test;
|
||||
[TestFixture]
|
||||
@@ -23,8 +22,13 @@ public class CayleySU3Test : BaseTest
|
||||
{
|
||||
Action<LieSU3> rawTest = x =>
|
||||
{
|
||||
Assert.IsTrue(x.Property.IsSkewHermitian);
|
||||
U3 cN = x.CayleyNegative();
|
||||
Assert.IsTrue((cN * cN.Hermitian()).IsEqualApprox(C33.One));
|
||||
Assert.IsTrue(cN.Property.IsUnitary);
|
||||
Console.WriteLine(cN.Representation);
|
||||
U3 h =cN.Hermitian();
|
||||
U3 xx = cN * cN.Hermitian();
|
||||
Assert.IsTrue((xx).IsEqualApprox(C33.One));
|
||||
};
|
||||
rawTest.OnFail(OnFail)(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user