UncertaintyModel

class UncertaintyModel(num_target_qubits)[source]

The abstract Uncertainty Model

Attributes

UncertaintyModel.num_target_qubits

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

UncertaintyModel.build_controlled_inverse(qc, …)

Adds controlled inverse of corresponding sub-circuit to given circuit

UncertaintyModel.build_controlled_inverse_power(qc, …)

Adds controlled, inverse, power of corresponding circuit.

UncertaintyModel.build_controlled_power(qc, …)

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.

UncertaintyModel.get_num_qubits()

returns number of qubits

UncertaintyModel.get_num_qubits_controlled()

returns number of qubits controlled

UncertaintyModel.required_ancillas()

returns required ancillas

UncertaintyModel.required_ancillas_controlled()

returns required ancillas controlled