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
In the Python file RSA_Breaker-4-bit.py there is a while loop that adds measurements to the circuit. However, every time that the loop runs, the measurements are added to the same qubits, and some qubits there are also never modifies in the loop, e.g. (qr[4], qr[5], qr[6], qr[7], qr[8], ..., qr[15]).
This leads to multiple measurement in series, with nothing in between, which is typically unnecessary.
How can we reproduce the issue?
Simply add print(circuit.draw()) at the end of each loop iteration to notice the series of measurements.
What should happen?
I would have expected to measure only once for the qubits that are not modified in the loop.
Any suggestions?
I would suggest measuring the fixed qubits before the loop, and then only measure the qubits that are modified in the loop.
Environment
What is happening?
In the Python file RSA_Breaker-4-bit.py there is a while loop that adds measurements to the circuit. However, every time that the loop runs, the measurements are added to the same qubits, and some qubits there are also never modifies in the loop, e.g. (qr[4], qr[5], qr[6], qr[7], qr[8], ..., qr[15]).
This leads to multiple measurement in series, with nothing in between, which is typically unnecessary.
How can we reproduce the issue?
Simply add
print(circuit.draw())
at the end of each loop iteration to notice the series of measurements.What should happen?
I would have expected to measure only once for the qubits that are not modified in the loop.
Any suggestions?
I would suggest measuring the fixed qubits before the loop, and then only measure the qubits that are modified in the loop.
Thanks in advance, I wish you a happy and productive day.
The text was updated successfully, but these errors were encountered: