I am trying to solve a system of linear equation using HHL algorithm in Qiskit. I have a problem with understanding the purpose of the following function.
state_fidelity()
To understand this I have followed their official documentation. But it is not clear to me yet.
They used this function like the following code.
from qiskit.quantum_info state_fidelity, process_fidelity
backend_sim = BasicAer.get_backend('statevector_simulator')
result = execute(circ, backend_sim).result()
state = result.get_statevector(circ)
print(state)
state_fidelity(basis_state('0110', 4), state)
The last line of this code generates this output.
1.0
Please, help me understand this.