26949ac70fc9cff80e633b0476c306d7809c8263,qiskit/aqua/components/uncertainty_models/univariate_variational_distribution.py,UnivariateVariationalDistribution,build,#UnivariateVariationalDistribution#Any#Any#Any#Any#,96

Before Change


        super().__init__(num_qubits, probabilities, low, high)

    def build(self, qc, q, q_ancillas=None, params=None):
        if not self._initial_distribution is None:
            self._initial_distribution.build(qc, q, q_ancillas, params)
        qc.extend(self._var_form.construct_circuit(self.params, q))


After Change



    def build(self, qc, q, q_ancillas=None, params=None):
        if self._initial_distribution is not None:
            qc.extend(self._initial_distribution.construct_circuit("circuit", q))
        qc.extend(self._var_form.construct_circuit(self.params, q))

    def set_probabilities(self, backend=BasicAer.get_backend("statevector_simulator")):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: 26949ac70fc9cff80e633b0476c306d7809c8263
Time: 2019-04-30
Author: ouf@zurich.ibm.com
File Name: qiskit/aqua/components/uncertainty_models/univariate_variational_distribution.py
Class Name: UnivariateVariationalDistribution
Method Name: build


Project Name: Qiskit/qiskit-aqua
Commit Name: 26949ac70fc9cff80e633b0476c306d7809c8263
Time: 2019-04-30
Author: ouf@zurich.ibm.com
File Name: qiskit/aqua/components/uncertainty_models/multivariate_variational_distribution.py
Class Name: MultivariateVariationalDistribution
Method Name: build


Project Name: Qiskit/qiskit-aqua
Commit Name: 55d2576c203ace380e09bf045a327841415ce36f
Time: 2019-05-01
Author: ouf@zurich.ibm.com
File Name: qiskit/aqua/components/uncertainty_models/univariate_variational_distribution.py
Class Name: UnivariateVariationalDistribution
Method Name: set_probabilities


Project Name: Qiskit/qiskit-aqua
Commit Name: 55d2576c203ace380e09bf045a327841415ce36f
Time: 2019-05-01
Author: ouf@zurich.ibm.com
File Name: qiskit/aqua/components/uncertainty_models/multivariate_variational_distribution.py
Class Name: MultivariateVariationalDistribution
Method Name: set_probabilities