Class AdjustedStateToUnitaryWithEV

java.lang.Object
com.polytechnik.kgo.AdjustedStateToUnitaryWithEV
All Implemented Interfaces:
UAdjustment

public class AdjustedStateToUnitaryWithEV extends Object implements UAdjustment
A class to store Eigenproblem-adjusted solution.
  • Field Details

    • gram

    • sum1Lam

      final double sum1Lam
      A criteria of all Gram eigenvalues equals to 1: \( \sum 1/\lambda^{[i]}_G \) If all are equal to one -- the values is nC (the minimal), otherwise it is greater.
    • GramSqM05

      final double[] GramSqM05
      A matrix such that u_adj = T u_orig. Would it be better to make it lazy val style?
  • Constructor Details

  • Method Details

    • getUOrig

      public double[] getUOrig()
      Specified by:
      getUOrig in interface UAdjustment
    • getUAdj

      public double[] getUAdj()
      Specified by:
      getUAdj in interface UAdjustment
    • getSVDForTesting

      public AdjustedStateToUnitaryWithSVD getSVDForTesting()
      For unit test.
    • convertSKtoNewBasis

      static double[] convertSKtoNewBasis(int nC, int nX, double[] SK, double[] to_new_basis)
    • createSKFromGram

      static double[] createSKFromGram(int nC, int nX, double[] Gram)
      Create SK matrix such that SK[j,k,jp,kp]=Gram[j,jp] delta_{k kp}.
    • getSKasMatrixInUState

      static double[] getSKasMatrixInUState(int nC, int nX, double[] SK, double[] u)
      For unit test.