MultivariateProblem¶
- class MultivariateProblem(uncertainty_model, aggregation_function, univariate_objective, conditions=None)[source]¶
Multivariate Uncertainty Problem.
Constructor.
- Parameters
uncertainty_model (
MultivariateDistribution
) – multivariate uncertainty modelaggregation_function (
CircuitFactory
) – aggregation function that maps the multiple dimension to an aggregated valueunivariate_objective (
UnivariatePiecewiseLinearObjective
) – objective function applied to the aggregated valueconditions (
Union
[List
[Tuple
[int
,CircuitFactory
]],ndarray
,None
]) – list of pairs (int, CircuitFactory) = target dimension of uncertainty model and condition to be satisfied to apply the aggregation
Attributes
Returns the number of target qubits
Methods
MultivariateProblem.build
(qc, q[, …])Adds corresponding sub-circuit to given circuit
MultivariateProblem.build_controlled
(qc, q, …)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.
MultivariateProblem.build_inverse
(qc, q[, …])Adds inverse of corresponding sub-circuit to given circuit
Adds inverse power of corresponding circuit.
MultivariateProblem.build_power
(qc, q, power)Adds power of corresponding circuit.
returns number of qubits
returns number of qubits controlled
returns required ancillas
returns required ancillas controlled
value to estimate