I have been using Qiskit
CircuitSampler
class to calculate the expectation values of operators as described here. Now it turns out that when it is used with statevector_simulator
it ignores the number of shots specified. How does CircuitSampler
calculate expectation value of an operator in this case and otherwise?
Asked
Active
Viewed 29 times
0

bisarch
- 189
- 1
- 7