UncertaintyProblem¶
- class UncertaintyProblem(num_qubits)[source]¶
The abstract Uncertainty Problem component.
Attributes
Returns the number of target qubits
Methods
UncertaintyProblem.build
(qc, q[, …])Adds corresponding sub-circuit to given circuit
UncertaintyProblem.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.
UncertaintyProblem.build_inverse
(qc, q[, …])Adds inverse of corresponding sub-circuit to given circuit
Adds inverse power of corresponding circuit.
UncertaintyProblem.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