@pytest.fixture
def qnodes(self):
    'Two QNodes to be used for the gradient tests'
    dev = qml.device('default.qubit', wires=2)

    @qml.qnode(dev, interface='tf')
    def f(x):
        qml.RX(x, wires=0)
        return qml.expval(qml.PauliZ(0))

    @qml.qnode(dev, interface='tf')
    def g(y):
        qml.RY(y, wires=0)
        return qml.expval(qml.PauliX(0))
    return (f, g)
Two QNodes to be used for the gradient tests
@pytest.fixture
def qnodes(self):
    
    dev = qml.device('default.qubit', wires=2)

    @qml.qnode(dev, interface='tf')
    def f(x):
        qml.RX(x, wires=0)
        return qml.expval(qml.PauliZ(0))

    @qml.qnode(dev, interface='tf')
    def g(y):
        qml.RY(y, wires=0)
        return qml.expval(qml.PauliX(0))
    return (f, g)