FixedIncomeExpectedValue¶
-
class
FixedIncomeExpectedValue
(uncertainty_model, A, b, cash_flow, c_approx, i_state=None, i_objective=None)[source]¶ Bases:
qiskit.aqua.components.uncertainty_problems.uncertainty_problem.UncertaintyProblem
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 (
List
[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
Methods
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
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.
Adds power of corresponding circuit.
returns number of qubits
returns number of qubits controlled
returns required ancillas
returns required ancillas controlled
value to estimate
Attributes
-
num_target_qubits
¶ Returns the number of target qubits