from qiskit.quantum_info import Statevector
from qiskit.quantum_info import Statevector, \
                        Operator, state_fidelity

sv_a = Statevector.from_label('+')
sv_b = sv_a.evolve(Operator.from_label('T'))
print(state_fidelity(sv_a, sv_b))

