# LogNormalDistribution¶

class LogNormalDistribution(num_target_qubits, mu=0, sigma=1, low=0, high=1)[source]

Bases : qiskit.aqua.components.uncertainty_models.univariate_distribution.UnivariateDistribution

The Univariate Log-Normal Distribution.

Log-normal distribution, truncated to lower and upper bound and discretized on a grid defined by the number of qubits.

Paramètres
• num_target_qubits (int) – Number of qubits it acts on, has a minimum value of 1.

• mu (float) – Expected value of considered normal distribution

• sigma (float) – Standard deviation of considered normal distribution

• low (float) – Lower bound, i.e., the value corresponding to |0…0> (assuming an equidistant grid)

• high (float) – Upper bound, i.e., the value corresponding to |1…1> (assuming an equidistant grid)

Methods

 build build_controlled Adds corresponding controlled sub-circuit to given circuit build_controlled_inverse Adds controlled inverse of corresponding sub-circuit to given circuit build_controlled_inverse_power Adds controlled, inverse, power of corresponding circuit. build_controlled_power Adds controlled power of corresponding circuit. build_inverse Adds inverse of corresponding sub-circuit to given circuit build_inverse_power Adds inverse power of corresponding circuit. build_power Adds power of corresponding circuit. get_num_qubits returns number of qubits get_num_qubits_controlled returns number of qubits controlled pdf_to_probabilities Takes a probability density function (pdf), and returns a truncated and discretized array of probabilities corresponding to it required_ancillas returns required ancillas required_ancillas_controlled returns required ancillas controlled

Attributes

high

returns high

low

returns low

num_target_qubits

Returns the number of target qubits

num_values

returns number of values

probabilities

returns probabilities

values

returns values