0cf51031e68b2a802a2533658dc7b5793315c971,test/test_hhl.py,TestHHL,test_hhl_diagonal_qasm,#TestHHL#Any#,162

Before Change


        hhl_solution = result["solution_hhl"]
        hhl_normed = hhl_solution/np.linalg.norm(hhl_solution)
        // linear algebra solution
        linalg_solution = np.linalg.solve(matrix, vector)
        linalg_normed = linalg_solution/np.linalg.norm(linalg_solution)

        // compare result
        fidelity = state_fidelity(linalg_normed, hhl_normed)
        self.assertGreater(fidelity, 0.8)

After Change


        qasm_params["backend"]["shots"] = 1000

        // run ExactLPsolver
        self.elp_params["input"] = qasm_params["input"]
        ref_result = run_algorithm(self.elp_params)
        ref_solution = ref_result["solution"]
        ref_normed = ref_solution/np.linalg.norm(ref_solution)
        // run hhl
        hhl_result = run_algorithm(qasm_params)
        hhl_solution = hhl_result["solution"]
        hhl_normed = hhl_solution/np.linalg.norm(hhl_solution)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 15

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: 0cf51031e68b2a802a2533658dc7b5793315c971
Time: 2019-04-04
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: 0cf51031e68b2a802a2533658dc7b5793315c971
Time: 2019-04-04
Author: alfr@de.ibm.com
File Name: test/test_hhl.py
Class Name: TestHHL
Method Name: test_hhl_diagonal_negative_sv


Project Name: Qiskit/qiskit-aqua
Commit Name: 0cf51031e68b2a802a2533658dc7b5793315c971
Time: 2019-04-04
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: 0cf51031e68b2a802a2533658dc7b5793315c971
Time: 2019-04-04
Author: alfr@de.ibm.com
File Name: test/test_hhl.py
Class Name: TestHHL
Method Name: test_hhl_diagonal_longdivison_sv