def test_keywordargs_for_wires(self, qubit_device_2_wires, tol):
    'Tests that wires can be passed as keyword arguments.'
    default_q = 0

    def circuit(x, q=default_q):
        qml.RY(x, wires=0)
        return qml.expval(qml.PauliZ(q))
    circuit = qml.QNode(circuit, qubit_device_2_wires).to_tf()
    c = circuit(tf.constant(np.pi), q=1)
    assert np.allclose(c, 1.0, atol=tol, rtol=0)
    c = circuit(tf.constant(np.pi))
    assert np.allclose(c.numpy(), (- 1.0), atol=tol, rtol=0)
Tests that wires can be passed as keyword arguments.
def test_keywordargs_for_wires(self, qubit_device_2_wires, tol):
    
    default_q = 0

    def circuit(x, q=default_q):
        qml.RY(x, wires=0)
        return qml.expval(qml.PauliZ(q))
    circuit = qml.QNode(circuit, qubit_device_2_wires).to_tf()
    c = circuit(tf.constant(np.pi), q=1)
    assert np.allclose(c, 1.0, atol=tol, rtol=0)
    c = circuit(tf.constant(np.pi))
    assert np.allclose(c.numpy(), (- 1.0), atol=tol, rtol=0)