def test_multidimensional_keywordargs_used(self, qubit_device_2_wires, tol):
    'Tests that qnodes use multi-dimensional keyword arguments.'

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

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