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