698f23520da756cb76e796aafb283c6153366685,qiskit/aqua/components/iqfts/approximate.py,Approximate,construct_circuit,#Approximate#Any#Any#Any#,54
Before Change
if mode == "vector":
raise NotImplementedError()
elif mode == "circuit":
if register is None:
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 reversed(range(self._num_qubits)):
After Change
if mode == "vector":
raise NotImplementedError()
elif mode == "circuit":
if circuit:
if not register:
raise AquaError("A QuantumRegister needs to be specified with the input QuantumCircuit.")
else:
circuit = QuantumCircuit()
if not register:
register = QuantumRegister(self._num_qubits, name="q")
if not circuit.has_register(register):
circuit.add_register(register)
for j in reversed(range(self._num_qubits)):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 13
Instances
Project Name: Qiskit/qiskit-aqua
Commit Name: 698f23520da756cb76e796aafb283c6153366685
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: 698f23520da756cb76e796aafb283c6153366685
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: 698f23520da756cb76e796aafb283c6153366685
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: 698f23520da756cb76e796aafb283c6153366685
Time: 2019-02-12
Author: shaohan.hu@ibm.com
File Name: qiskit/aqua/components/qfts/approximate.py
Class Name: Approximate
Method Name: construct_circuit