e871556bad89d632b549f0c5184a5c5159d34930,qiskit_aqua/algorithms/single_sample/iqpe/iqpe.py,IQPE,_estimate_phase_iteratively,#IQPE#,219

Before Change


    def _estimate_phase_iteratively(self):
        Iteratively construct the different order of controlled evolution circuit to carry out phase estimation
        if self._quantum_instance.is_statevector:
            raise ValueError("Selected backend does not support measurements.")

        self._ret["top_measurement_label"] = ""

        omega_coef = 0

After Change


            omega_coef /= 2
            qc = self.construct_circuit(k, -2 * np.pi * omega_coef)
            if self._quantum_instance.is_statevector:
                result = self._quantum_instance.execute(qc)
                complete_state_vec = result.get_statevector(qc, decimals=16)
                state_vec = get_subsystem_statevector(
                    complete_state_vec,
                    range(self._operator.num_qubits)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: e871556bad89d632b549f0c5184a5c5159d34930
Time: 2019-01-11
Author: shaohan.hu@ibm.com
File Name: qiskit_aqua/algorithms/single_sample/iqpe/iqpe.py
Class Name: IQPE
Method Name: _estimate_phase_iteratively


Project Name: allenai/allennlp
Commit Name: 1691cb3a61740fbbc8305d52d4e830c79302a666
Time: 2018-10-10
Author: pradeep.dasigi@gmail.com
File Name: allennlp/semparse/worlds/wikitables_variable_free_world.py
Class Name: WikiTablesVariableFreeWorld
Method Name: execute


Project Name: thenetcircle/dino
Commit Name: 4563e383962690cc196f4551f217d488501b660e
Time: 2019-12-29
Author: oscar.eriks@gmail.com
File Name: bin/count_users_in_rooms.py
Class Name:
Method Name:


Project Name: thenetcircle/dino
Commit Name: cb2d4c69faf62ffba917c61567adaf825341629b
Time: 2016-10-05
Author: oscar.eriks@gmail.com
File Name: dino/storage/cassandra.py
Class Name: CassandraStorage
Method Name: get_owners