FixedIncomePricingObjective#
- class FixedIncomePricingObjective(num_qubits, pca_matrix, initial_interests, cash_flow, rescaling_factor, bounds)[source]#
Bases:
QuantumCircuit
The Fixed Income Expected Value amplitude function. This circuit can be used to evaluate the expected value of the total value
of the assetsHere
are the cash flows of the assets and are the interest rates. The interest rates are subject to uncertainty and can be described by a PCA-decomposition into thepca_matrix
andinitial_interests
. For a sample of a random variable, the interest rates are modeled as:The number of qubits used to represent each asset is specified by
num_qubits
and the bounds of the random variable bybounds
. The approximation of the objective function follows [1]. .. rubric:: References- [1]: Woerner, S., & Egger, D. J. (2018).
Quantum Risk Analysis. arXiv:1806.06893
- Parameters:
num_qubits (List[int]) – A list specifying the number of qubits used to discretize the assets.
pca_matrix (ndarray) – The PCA matrix for the changes in the interest rates,
.initial_interests (List[int]) – The initial interest rates / offsets for the interest rates.
rescaling_factor (float) – The scaling factor used in the Taylor approximation.
bounds (List[Tuple[float, float]]) – The list of the tuple of the bounds, (min, max), for return values the assets can attain.
Attributes
Methods