2abefe3a7bc2b5609d0dcf1bf2aa6a1f5c449e7a,test/test_hhl.py,TestHHL,test_hhl_diagonal_longdivison_sv,#TestHHL#Any#,126

Before Change


        linalg_normed = linalg_solution/np.linalg.norm(linalg_solution)

        // compare result
        fidelity = abs(linalg_normed.dot(hhl_normed.conj()))**2
        np.testing.assert_approx_equal(fidelity, 1, significant=5)

        self.log.debug("HHL solution vector:       {}".format(hhl_solution))
        self.log.debug("algebraic solution vector: {}".format(linalg_solution))

After Change


        linalg_normed = linalg_solution/np.linalg.norm(linalg_solution)

        // compare result
        fidelity = state_fidelity(linalg_normed, hhl_normed)
        np.testing.assert_approx_equal(fidelity, 1, significant=5)

        self.log.debug("HHL solution vector:       {}".format(hhl_solution))
        self.log.debug("algebraic solution vector: {}".format(linalg_solution))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 7

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: 2abefe3a7bc2b5609d0dcf1bf2aa6a1f5c449e7a
Time: 2019-03-11
Author: alfr@de.ibm.com
File Name: test/test_hhl.py
Class Name: TestHHL
Method Name: test_hhl_diagonal_longdivison_sv


Project Name: Qiskit/qiskit-aqua
Commit Name: 2abefe3a7bc2b5609d0dcf1bf2aa6a1f5c449e7a
Time: 2019-03-11
Author: alfr@de.ibm.com
File Name: test/test_hhl.py
Class Name: TestHHL
Method Name: test_hhl_diagonal_sv


Project Name: Qiskit/qiskit-aqua
Commit Name: 2abefe3a7bc2b5609d0dcf1bf2aa6a1f5c449e7a
Time: 2019-03-11
Author: alfr@de.ibm.com
File Name: test/test_hhl.py
Class Name: TestHHL
Method Name: test_hhl_diagonal_qasm


Project Name: Qiskit/qiskit-aqua
Commit Name: 2abefe3a7bc2b5609d0dcf1bf2aa6a1f5c449e7a
Time: 2019-03-11
Author: alfr@de.ibm.com
File Name: test/test_hhl.py
Class Name: TestHHL
Method Name: test_hhl_random_hermitian_sv


Project Name: Qiskit/qiskit-aqua
Commit Name: 2abefe3a7bc2b5609d0dcf1bf2aa6a1f5c449e7a
Time: 2019-03-11
Author: alfr@de.ibm.com
File Name: test/test_hhl.py
Class Name: TestHHL
Method Name: test_hhl_negative_eigs_sv


Project Name: Qiskit/qiskit-aqua
Commit Name: 2abefe3a7bc2b5609d0dcf1bf2aa6a1f5c449e7a
Time: 2019-03-11
Author: alfr@de.ibm.com
File Name: test/test_hhl.py
Class Name: TestHHL
Method Name: test_hhl_diagonal_negative_sv