Class AdjustedStateToUnitaryWithSVD

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

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

  • 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()
    • fromU

      static AdjustedStateToUnitaryWithSVD fromU(int nC, int nX, double[] u_orig)
    • getMatrixConstructedWithAdjustedSingularValues

      static double[] getMatrixConstructedWithAdjustedSingularValues(EVSolver.SVDResult svd, double[] S_adj)
      Reconstruct the matrix using adjusted singular values. For unit test.
    • convertFunctionalFromOriginalToSigmaBasis

      static double[] convertFunctionalFromOriginalToSigmaBasis(EVSolver.SVDResult svd, double[] SK)
      Partial sum over "coordinate" indexes, only singular index is not summed. Convert the objective functional matrix from original basis to operator's singular values basis.
      Returns:
      A matrix of the dimension svd.S.length x svd.S.length.