def test_keywordargs_used(self, qubit_device_1_wire, tol):
    'Tests that qnodes use keyword arguments.'

    def circuit(w, x=None):
        qml.RX(x, wires=[0])
        return qml.expval(qml.PauliZ(0))
    circuit = qml.QNode(circuit, qubit_device_1_wire).to_tf()
    c = circuit(tf.constant(1.0), x=np.pi)
    assert np.allclose(c.numpy(), (- 1.0), atol=tol, rtol=0)
Tests that qnodes use keyword arguments.
def test_keywordargs_used(self, qubit_device_1_wire, tol):
    

    def circuit(w, x=None):
        qml.RX(x, wires=[0])
        return qml.expval(qml.PauliZ(0))
    circuit = qml.QNode(circuit, qubit_device_1_wire).to_tf()
    c = circuit(tf.constant(1.0), x=np.pi)
    assert np.allclose(c.numpy(), (- 1.0), atol=tol, rtol=0)