8e094feebf098642c9e03651d38618ed56829fe4,qiskit/aqua/utils/boolean_logic.py,BooleanLogicNormalForm,_set_up_circuit,#BooleanLogicNormalForm#Any#Any#Any#Any#Any#Any#,117

Before Change


        self._qr_ancilla = _set_up_register(num_ancillae, qr_ancilla, "ancilla")

        if circuit is None:
            if self._qr_ancilla:
                circuit = QuantumCircuit(self._qr_variable, self._qr_clause, self._qr_ancilla, self._qr_outcome)
            else:
                circuit = QuantumCircuit(self._qr_variable, self._qr_clause, self._qr_outcome)
        return circuit

    @abstractmethod
    def construct_circuit(self, *args, **kwargs):

After Change


        self._qr_ancilla = _set_up_register(num_ancillae, qr_ancilla, "ancilla")

        if circuit is None:
            circuit = QuantumCircuit()
            if self._qr_variable:
                circuit.add_register(self._qr_variable)
            if self._qr_clause:
                circuit.add_register(self._qr_clause)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: 8e094feebf098642c9e03651d38618ed56829fe4
Time: 2019-02-09
Author: shaohan.hu@ibm.com
File Name: qiskit/aqua/utils/boolean_logic.py
Class Name: BooleanLogicNormalForm
Method Name: _set_up_circuit


Project Name: Qiskit/qiskit-aqua
Commit Name: a69d4792642ae53172b470e7380a84a03df5b1ad
Time: 2019-07-17
Author: chenrich@us.ibm.com
File Name: qiskit/aqua/algorithms/single_sample/iterative_qpe/iqpe.py
Class Name: IQPE
Method Name: construct_circuit


Project Name: Qiskit/qiskit-aqua
Commit Name: a69d4792642ae53172b470e7380a84a03df5b1ad
Time: 2019-07-17
Author: chenrich@us.ibm.com
File Name: qiskit/aqua/circuits/phase_estimation_circuit.py
Class Name: PhaseEstimationCircuit
Method Name: construct_circuit