def ansatz(x, y, z):
    qml.QubitStateVector((np.array([1, 0, 1, 1]) / np.sqrt(3)), wires=[0, 1])
    qml.Rot(x, y, z, wires=0)
    qml.CNOT(wires=[0, 1])
    return (qml.expval(qml.PauliZ(0)), qml.expval(qml.PauliY(1)))
def ansatz(x, y, z):
    qml.QubitStateVector((np.array([1, 0, 1, 1]) / np.sqrt(3)), wires=[0, 1])
    qml.Rot(x, y, z, wires=0)
    qml.CNOT(wires=[0, 1])
    return (qml.expval(qml.PauliZ(0)), qml.expval(qml.PauliY(1)))