Package com.polytechnik.kgo
Class AdjustedStateToUnitaryWithSVD
java.lang.Object
com.polytechnik.kgo.AdjustedStateToUnitaryWithSVD
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final EVSolver.SVDResult
(package private) final EVSolver.SVDResult
private final double[]
private final double[]
-
Constructor Summary
ConstructorsConstructorDescriptionAdjustedStateToUnitaryWithSVD
(EVSolver.SVDResult svd_orig, double[] u_orig, EVSolver.SVDResult svd_adj, double[] u_adj) -
Method Summary
Modifier and TypeMethodDescription(package private) static double[]
convertFunctionalFromOriginalToSigmaBasis
(EVSolver.SVDResult svd, double[] SK) Partial sum over "coordinate" indexes, only singular index is not summed.(package private) static double[]
getMatrixConstructedWithAdjustedSingularValues
(EVSolver.SVDResult svd, double[] S_adj) Reconstruct the matrix using adjusted singular values.For unit tests.double[]
getUAdj()
double[]
getUOrig()
-
Field Details
-
svd_orig
-
svd_adj
-
u_orig
private final double[] u_orig -
u_adj
private final double[] u_adj
-
-
Constructor Details
-
AdjustedStateToUnitaryWithSVD
AdjustedStateToUnitaryWithSVD(EVSolver.SVDResult svd_orig, double[] u_orig, EVSolver.SVDResult svd_adj, double[] u_adj)
-
-
Method Details
-
getUOrig
public double[] getUOrig()- Specified by:
getUOrig
in interfaceUAdjustment
-
getUAdj
public double[] getUAdj()- Specified by:
getUAdj
in interfaceUAdjustment
-
getSVDForTesting
Description copied from interface:UAdjustment
For unit tests.- Specified by:
getSVDForTesting
in interfaceUAdjustment
-
getMatrixConstructedWithAdjustedSingularValues
static double[] getMatrixConstructedWithAdjustedSingularValues(EVSolver.SVDResult svd, double[] S_adj) Reconstruct the matrix using adjusted singular values. For unit test. -
convertFunctionalFromOriginalToSigmaBasis
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.
-