What is the Fidelity of quantum states?
Learn what State fidelity is and how to calculate it.
In the last post, I shared with you 5 questions that will help you become great at linear algebra and ace Quantum computing.
Let’s dive in and solve the third one step by step.
Question 3
Given two quantum states as follows:
Compute their inner product
Compute their Fidelity
Solution 3
3.1: Computing the inner product
The inner product of two qubits |ψ> and |ϕ> is represented as <ϕ|ψ>.
This means that we first need to write |ψ> in its bra form as <ψ|.
Next:
From previous lessons, we know that:
This simplifies the above equation to:
This is the inner product of these two qubits.
3.2: Computing the Fidelity
Fidelity is a measure of how similar two quantum states/ qubits are.
Fidelity tells how closely a practical, noisy quantum state/ operation matches its ideal theoretical counterpart. This helps to benchmark quantum computers and evaluate quantum state preparation.
The value of Fidelity lies between 0 and 1, where:
1 means that the two qubits are the same or their state is identical
0 means that the states are completely different or orthogonal
For two qubits |ψ> and |ϕ>, the Fidelity is calculated as:
This means that we:
First, compute the inner product of the two qubits
Then, square the absolute value of this result
We already calculated the inner product of the two qubits as follows.
The Fidelity is calculated by taking the square of the absolute value of this result.
This is approximately equal to 0.933.
This tells us that these states are quite similar to one another (close to 1).
Thanks for being a curious reader of ‘Into Quantum’, a publication that teaches essential concepts in Quantum Computing from the ground up.
To get even more value from this publication, consider becoming a paid subscriber.



