In order to calculate the exact expectation value of a Pauli operator in some state using local
qasm_simulator, I do
psi = qiskit.aqua.operators.state_fns.CircuitStateFn( circuit ) expect = psi.adjoint().compose( weighted_pauli.to_opflow() ).compose( psi ).eval().real
I would like to run this calculation using
ibmq_quantum_simulator. In all the examples I found online (see e.g. this one),
ibmq_quantum_simulator is used to simulate sampling with some number of shots. How do I use it with
shots = None, similarly to the code above?