Hello! I have a question about qml.measure. When I use the code as follows:
for i in np.arange(0, nq, 2):
qml.measure(wires=i, reset=True)
If I don’t care about the measurement result, and just apply quantum operations on qubits with odd indexes, then get the corresponding reduced density matrix for qubits with odd indexes. Then, when I calculate the gradients of the final state, how PennyLane treat this state? Is the state with a certain measurement result considered, or it equal to trace out qubits with even indexes?
Besides, if I only want the states with measurement result 0 (post-selection), how can I implement it?