Error in checker for 1.2.2?

The checker accepts the following solution:
qml.RX(theta, wires=0)
qml.RY(phi, wires=1)
qml.RZ(omega, wires=2)
qml.CNOT(wires=[0, 1])
qml.CNOT(wires=[1, 2])
qml.CNOT(wires=[2, 0])

However it rejects:
qml.RX(theta, wires=0)
qml.RY(phi, wires=1)
qml.CNOT(wires=[0, 1])
qml.RZ(omega, wires=2)
qml.CNOT(wires=[1, 2])
qml.CNOT(wires=[2, 0])
The RZ is swapped with the CNOT above. This should produce the same output I think. But the checker complains that wire 2 is not correct.

1 Like

Hi @sustik ,

Thank you for pointing this out! They are indeed equivalent circuits. We’ll update the codercise to avoid this issue.

Thanks for helping us make the Codebook better :raised_hands: