8ac52eaf2f03402e413101c94301306f41f60a19,qiskit/aqua/algorithms/single_sample/amplitude_estimation/iqae.py,IterativeAmplitudeEstimation,_chernoff_confint,#IterativeAmplitudeEstimation#Any#Any#Any#Any#,225

Before Change


            a_min = 0
        else:
            a_min = a - epsilon_a
        if a + epsilon_a > 1:
            a_max = 1
        else:
            a_max = a + epsilon_a

        return a_min, a_max

    def _run(self):
        // check that A and Q operators are correctly set

After Change


        
        eps = np.sqrt(3 * np.log(2 * max_rounds / alpha) / shots)
        lower = np.maximum(0, value - eps)
        upper = np.minimum(1, value + eps)
        return lower, upper

    def _run(self):
        // check that A and Q operators are correctly set
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: 8ac52eaf2f03402e413101c94301306f41f60a19
Time: 2019-12-12
Author: jules.gacon@googlemail.com
File Name: qiskit/aqua/algorithms/single_sample/amplitude_estimation/iqae.py
Class Name: IterativeAmplitudeEstimation
Method Name: _chernoff_confint


Project Name: etal/cnvkit
Commit Name: a8c287c0b970968feeaae325379668755760a25b
Time: 2015-05-01
Author: eric.talevich@gmail.com
File Name: cnvlib/fix.py
Class Name:
Method Name: apply_weights


Project Name: LCAV/pyroomacoustics
Commit Name: 3872c53eed54c9ee78438f58dbb8307a6df5e5ca
Time: 2017-06-22
Author: fakufaku@gmail.com
File Name: pyroomacoustics/realtime/stft.py
Class Name: STFT
Method Name: synthesis