e1e0b5b7d2260f33ffff00a746148cd0c2c739f8,qiskit/aqua/components/iqfts/approximate.py,Approximate,construct_circuit,#Approximate#Any#Any#Any#,54
Before Change
def construct_circuit(self, mode, register=None, circuit=None):
if mode == "vector":
return linalg.dft(2 ** self._num_qubits, scale="sqrtn")
elif mode == "circuit":
if register is None:
register = QuantumRegister(self._num_qubits, name="q")
if circuit is None:
After Change
def construct_circuit(self, mode, register=None, circuit=None):
if mode == "vector":
return linalg.inv(linalg.dft(2 ** self._num_qubits, scale="sqrtn"))
elif mode == "circuit":
if register is None:
register = QuantumRegister(self._num_qubits, name="q")
if circuit is None:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: Qiskit/qiskit-aqua
Commit Name: e1e0b5b7d2260f33ffff00a746148cd0c2c739f8
Time: 2019-02-11
Author: alfr@de.ibm.com
File Name: qiskit/aqua/components/iqfts/approximate.py
Class Name: Approximate
Method Name: construct_circuit
Project Name: Qiskit/qiskit-aqua
Commit Name: abdc5fc1253d18491cc8fc8f71bd9d32252a9b04
Time: 2019-02-11
Author: alfr@de.ibm.com
File Name: qiskit/aqua/components/qfts/standard.py
Class Name: Standard
Method Name: construct_circuit
Project Name: Qiskit/qiskit-aqua
Commit Name: e1e0b5b7d2260f33ffff00a746148cd0c2c739f8
Time: 2019-02-11
Author: alfr@de.ibm.com
File Name: qiskit/aqua/components/iqfts/standard.py
Class Name: Standard
Method Name: construct_circuit