UncertaintyProblem

class UncertaintyProblem(num_qubits)[source]

The abstract Uncertainty Problem component.

Attributes

UncertaintyProblem.num_target_qubits

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

UncertaintyProblem.build_controlled_inverse(qc, …)

Adds controlled inverse of corresponding sub-circuit to given circuit

UncertaintyProblem.build_controlled_inverse_power(qc, …)

Adds controlled, inverse, power of corresponding circuit.

UncertaintyProblem.build_controlled_power(qc, …)

Adds controlled power of corresponding circuit.

UncertaintyProblem.build_inverse(qc, q[, …])

Adds inverse of corresponding sub-circuit to given circuit

UncertaintyProblem.build_inverse_power(qc, …)

Adds inverse power of corresponding circuit.

UncertaintyProblem.build_power(qc, q, power)

Adds power of corresponding circuit.

UncertaintyProblem.get_num_qubits()

returns number of qubits

UncertaintyProblem.get_num_qubits_controlled()

returns number of qubits controlled

UncertaintyProblem.required_ancillas()

returns required ancillas

UncertaintyProblem.required_ancillas_controlled()

returns required ancillas controlled

UncertaintyProblem.value_to_estimation(value)

value to estimate