def test_qnode_fails_on_multiple_measurements_of_same_wire(self, qubit_device_2_wires):
    'A wire can only be measured once'

    @qml.qnode(qubit_device_2_wires, interface='tf')
    def qf(x):
        qml.RX(x, wires=[0])
        qml.CNOT(wires=[0, 1])
        return (qml.expval(qml.PauliZ(0)), qml.expval(qml.PauliZ(1)), qml.expval(qml.PauliX(0)))
    with pytest.raises(QuantumFunctionError, match='can only be measured once'):
        qf(Variable(0.5))
A wire can only be measured once
def test_qnode_fails_on_multiple_measurements_of_same_wire(self, qubit_device_2_wires):
    

    @qml.qnode(qubit_device_2_wires, interface='tf')
    def qf(x):
        qml.RX(x, wires=[0])
        qml.CNOT(wires=[0, 1])
        return (qml.expval(qml.PauliZ(0)), qml.expval(qml.PauliZ(1)), qml.expval(qml.PauliX(0)))
    with pytest.raises(QuantumFunctionError, match='can only be measured once'):
        qf(Variable(0.5))