from qiskit import QuantumCircuit

# NEGATIVE for OpAfterMeas: a reset lies between the measure and the later
# gate, so the gate does NOT operate on a post-measurement qubit state.
# A correct (reset-aware) detector must stay silent; a reset-blind detector
# (Engine A) will falsely fire here -- a documented limitation.
qc = QuantumCircuit(2, 2)
qc.reset(0)
qc.reset(1)
qc.h(0)
qc.measure(0, 0)
qc.reset(0)
qc.h(0)          # SAFE: reset(0) between measure(0) and this gate
