You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.
If you look at the code below, you'll find that the measurements have been replaced with StateFns, making the ComposedOps invalid and unable to eval. The same is true for statevector mode.
Code:
import qiskit.aqua.operators as of
from qiskit import BasicAer
data = of.ListOp([of.Plus, of.Zero])
qk = ~data @ data
print(qk)
sampled_qk = of.CircuitSampler(backend=BasicAer.get_backend('qasm_simulator')).convert(qk)
print(sampled_qk)
I believe the issue is that on lines 309, 311, and 314 of the CircuitSampler the resulting StateFn should be given the measurement status of op_c.is_measurement, but I'm not 100% positive.
The text was updated successfully, but these errors were encountered:
@jlapeyre If you did not start already, I can make the PR for this issue and #1338 .
But if you think that problem is more tricky, I can leave it up to you.
If you look at the code below, you'll find that the measurements have been replaced with StateFns, making the ComposedOps invalid and unable to eval. The same is true for statevector mode.

Code:
I believe the issue is that on lines 309, 311, and 314 of the CircuitSampler the resulting StateFn should be given the measurement status of op_c.is_measurement, but I'm not 100% positive.
The text was updated successfully, but these errors were encountered: