FixedIncomeExpectedValue¶
- class FixedIncomeExpectedValue(uncertainty_model, A, b, cash_flow, c_approx, i_state=None, i_objective=None)[source]¶
The Fixed Income Expected Value.
Evaluates a fixed income asset with uncertain interest rates.
Constructor.
- Parameters
uncertainty_model (
UncertaintyModel
) – multivariate distributionA (
ndarray
) – PCA matrix for delta_r (changes in interest rates)b (
int
) – offset for interest rates (= initial interest rates)cash_flow (
List
[float
]) – cash flow time seriesc_approx (
float
) – approximation scaling factori_state (
Union
[List
[int
],ndarray
,None
]) – indices of qubits that represent the statei_objective (
Optional
[int
]) – index of target qubit to apply the rotation to
Attributes
Returns the number of target qubits
Methods
FixedIncomeExpectedValue.build
(qc, q[, …])Adds corresponding sub-circuit to given circuit
Adds corresponding controlled sub-circuit to given circuit
Adds controlled inverse of corresponding sub-circuit to given circuit
FixedIncomeExpectedValue.build_controlled_inverse_power
(qc, …)Adds controlled, inverse, power of corresponding circuit.
Adds controlled power of corresponding circuit.
Adds inverse of corresponding sub-circuit to given circuit
Adds inverse power of corresponding circuit.
FixedIncomeExpectedValue.build_power
(qc, q, …)Adds power of corresponding circuit.
returns number of qubits
returns number of qubits controlled
returns required ancillas
returns required ancillas controlled
value to estimate