I have constructed an operator A in term of a series of quantum gates, and a quantum circuit representing a state $|\phi\rangle$, how do I calculate the expectation value $\langle\phi|A|\phi\rangle$ in qiskit?
I have constructed an operator A in term of a series of quantum gates, and a quantum circuit representing a state $|\phi\rangle$, how do I calculate the expectation value $\langle\phi|A|\phi\rangle$ in qiskit?