Flips the result measurement display#29
Conversation
When ran, Bob's received message was printing flipped (i.e. it printed "01" when it received "10"). The issue wasn't in the measurement, because when printing "res.measurements" it correctly assigned the values to the qubits from the message as expected. This correction flips the bitstring display so it prints the message correctly. The error might come from a change in how cirq saves measurements from simulators, but I'm not sure.
|
Thanks @roosado - which Cirq version are you running which has the flipped measurement outcome? |
|
I see the same bitstring, but I'm not convinced its a problem with the bitstring function. I'm using Here is the output with some extra prints: cirq version: 0.9.1 the superdense circuit Bob's meausurement values dict_values([array([[0]], dtype=int8), array([[1]], dtype=int8)]) Bob's recv: 01 |
|
@rmlarose But yeah, the problem is not in the bitstring function, it's got to be the way cirq is saving the values. |
|
I'm not seeing the problem,however I am using an older versions: circ - 8.2 i embellished the book sample to superdense encode an arbituary string such as "hello world" output snippet: cirquit: |
When ran, Bob's received message was printing flipped (i.e. it printed "01" when it received "10"). The issue wasn't in the measurement, because when printing "res.measurements" it correctly assigned the values to the qubits from the message as expected.
This correction flips the bitstring display so it prints the message correctly.
The error might come from a change in how cirq saves measurements from simulators, but I'm not sure.