def test_keywordarg_updated_in_multiple_calls(self, qubit_device_2_wires):
    'Tests that qnodes update keyword arguments in consecutive calls.'

    def circuit(w, x=None):
        qml.RX(w, wires=[0])
        qml.RX(x, wires=[1])
        return (qml.expval(qml.PauliZ(0)), qml.expval(qml.PauliZ(1)))
    circuit = qml.QNode(circuit, qubit_device_2_wires).to_tf()
    c1 = circuit(tf.constant(0.1), x=tf.constant(0.0))
    c2 = circuit(tf.constant(0.1), x=np.pi)
    assert (c1[1] != c2[1])
Tests that qnodes update keyword arguments in consecutive calls.
def test_keywordarg_updated_in_multiple_calls(self, qubit_device_2_wires):
    

    def circuit(w, x=None):
        qml.RX(w, wires=[0])
        qml.RX(x, wires=[1])
        return (qml.expval(qml.PauliZ(0)), qml.expval(qml.PauliZ(1)))
    circuit = qml.QNode(circuit, qubit_device_2_wires).to_tf()
    c1 = circuit(tf.constant(0.1), x=tf.constant(0.0))
    c2 = circuit(tf.constant(0.1), x=np.pi)
    assert (c1[1] != c2[1])