Hi @zj-lucky, the inner product between two states can be computed using the SWAP test.
You can learn more about implementing it in PennyLane here!
Please let me know if this solves your question.