778199482c3c78925d56d9fa0696d318b210a0b8,qiskit/aqua/components/qfts/standard.py,Standard,construct_circuit,#Standard#Any#Any#Any#,46

Before Change


                register = QuantumRegister(self._num_qubits, name="q")
            if circuit is None:
                circuit = QuantumCircuit()
            circuit.add_register(register)

            for j in range(self._num_qubits):
                for k in range(j):
                    lam = 1.0 * pi / float(2 ** (j - k))

After Change


                register = QuantumRegister(self._num_qubits, name="q")
            if circuit is None:
                circuit = QuantumCircuit()
            if not circuit.has_register(register):
                circuit.add_register(register)

            for j in range(self._num_qubits):
                for k in range(j):
                    lam = 1.0 * pi / float(2 ** (j - k))
                    circuit.u1(lam / 2, register[j])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: 778199482c3c78925d56d9fa0696d318b210a0b8
Time: 2019-02-12
Author: shaohan.hu@ibm.com
File Name: qiskit/aqua/components/qfts/standard.py
Class Name: Standard
Method Name: construct_circuit


Project Name: Qiskit/qiskit-aqua
Commit Name: 778199482c3c78925d56d9fa0696d318b210a0b8
Time: 2019-02-12
Author: shaohan.hu@ibm.com
File Name: qiskit/aqua/components/iqfts/standard.py
Class Name: Standard
Method Name: construct_circuit


Project Name: Qiskit/qiskit-aqua
Commit Name: 778199482c3c78925d56d9fa0696d318b210a0b8
Time: 2019-02-12
Author: shaohan.hu@ibm.com
File Name: qiskit/aqua/components/iqfts/approximate.py
Class Name: Approximate
Method Name: construct_circuit


Project Name: Qiskit/qiskit-aqua
Commit Name: 778199482c3c78925d56d9fa0696d318b210a0b8
Time: 2019-02-12
Author: shaohan.hu@ibm.com
File Name: qiskit/aqua/components/qfts/approximate.py
Class Name: Approximate
Method Name: construct_circuit