Package com.polytechnik.kgo
Class AdjustedStateToUnitaryWithEigenproblem
java.lang.Object
com.polytechnik.kgo.AdjustedStateToUnitaryWithEigenproblem
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ApplyFunToGramMatrix
(package private) final double[]
A matrix such that u_adj = T u_orig.(package private) final double
A criteria of all Gram eigenvalues equals to 1: \( \sum 1/\lambda^{[i]}_G \) If all are equal to one -- the values isnC
(the minimal), otherwise it is greater. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static double[]
convertSKtoNewBasis
(int nC, int nX, double[] SK, double[] to_new_basis) To remove along withKGOIterationalMultipleTransforms
andKGOIterationalGEVAdj_Q_denominator
.(package private) 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}.(package private) static double[]
getSKasMatrixInUState
(int nC, int nX, double[] SK, double[] u) For unit test.For unit test.double[]
getUAdj()
double[]
getUOrig()
-
Field Details
-
gram
-
sum1Lam
final double sum1LamA criteria of all Gram eigenvalues equals to 1: \( \sum 1/\lambda^{[i]}_G \) If all are equal to one -- the values isnC
(the minimal), otherwise it is greater. -
GramSqM05
final double[] GramSqM05A matrix such that u_adj = T u_orig. Would it be better to make itlazy val
style?
-
-
Constructor Details
-
AdjustedStateToUnitaryWithEigenproblem
AdjustedStateToUnitaryWithEigenproblem(ApplyFunToGramMatrix gram)
-
-
Method Details
-
getUOrig
public double[] getUOrig()- Specified by:
getUOrig
in interfaceUAdjustment
-
getUAdj
public double[] getUAdj()- Specified by:
getUAdj
in interfaceUAdjustment
-
getSVDForTesting
For unit test.- Specified by:
getSVDForTesting
in interfaceUAdjustment
-
convertSKtoNewBasis
static double[] convertSKtoNewBasis(int nC, int nX, double[] SK, double[] to_new_basis) To remove along withKGOIterationalMultipleTransforms
andKGOIterationalGEVAdj_Q_denominator
. -
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.
-