I would like to find the exact probabilities of the possible outcomes of a circuit that includes mid-circuit measurements.
So, as a specific example, consider the following circuit:
I would like to find the exact probabilities for all possible outcomes in the classical register (so no sampling). Does anyone have any idea of how to do that? The typical route of using Statevector from qiskit.quantum_info doesn't work here, because it can only deal with the final state of the qubits.
For clarity: I am working in qiskit, but I am happy to switch to whatever language this is possible in.