2579ba272272fa31e3c7d2139bbe91dc32b9dc8a,test/aqua/test_amplitude_estimation.py,TestBernoulli,test_qae_circuit,#TestBernoulli#Any#,186
Before Change
actual_circuit = qae.construct_circuit(measurement=False)
actual_transpiled = transpile(actual_circuit, basis_gates=basis_gates)
self.assertEqual(expected_transpiled, actual_transpiled)
@parameterized.expand([
[True], [False]
])
After Change
// fourier transform
iqft = Standard(m)
circuit = iqft.construct_circuit(qubits=q_ancilla, circuit=circuit, do_swaps=False)
expected_unitary = self._unitary.execute(circuit).get_unitary()
actual_circuit = qae.construct_circuit(measurement=False)
actual_unitary = self._unitary.execute(actual_circuit).get_unitary()
diff = np.sum(np.abs(actual_unitary - expected_unitary))
self.assertAlmostEqual(diff, 0)
@parameterized.expand([
[True], [False]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
Instances
Project Name: Qiskit/qiskit-aqua
Commit Name: 2579ba272272fa31e3c7d2139bbe91dc32b9dc8a
Time: 2020-01-26
Author: jules.gacon@googlemail.com
File Name: test/aqua/test_amplitude_estimation.py
Class Name: TestBernoulli
Method Name: test_qae_circuit
Project Name: Qiskit/qiskit-aqua
Commit Name: 2579ba272272fa31e3c7d2139bbe91dc32b9dc8a
Time: 2020-01-26
Author: jules.gacon@googlemail.com
File Name: test/aqua/test_amplitude_estimation.py
Class Name: TestBernoulli
Method Name: test_qae_circuit
Project Name: Qiskit/qiskit-aqua
Commit Name: 2579ba272272fa31e3c7d2139bbe91dc32b9dc8a
Time: 2020-01-26
Author: jules.gacon@googlemail.com
File Name: test/aqua/test_amplitude_estimation.py
Class Name: TestBernoulli
Method Name: test_mlae_circuits
Project Name: Qiskit/qiskit-aqua
Commit Name: 2579ba272272fa31e3c7d2139bbe91dc32b9dc8a
Time: 2020-01-26
Author: jules.gacon@googlemail.com
File Name: test/aqua/test_amplitude_estimation.py
Class Name: TestBernoulli
Method Name: test_iqae_circuits