Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def circuit(x):
qml.RX(x, wires=[0])
qml.CNOT(wires=[0, 1])
qml.RY(0.4, wires=[0])
qml.RZ(-0.2, wires=[1])
return qml.expval(qml.PauliX(0)), qml.expval(qml.PauliZ(1))
def circuit(x):
qml.RX(x, wires=[1])
return qml.expval(qml.PauliZ(0))
def classifier_circuit(in_data, x):
qml.RX(in_data, wires=[0])
qml.CNOT(wires=[0, 1])
qml.RY(-1.6, wires=[0])
qml.RY(in_data, wires=[1])
qml.CNOT(wires=[1, 0])
qml.RX(x, wires=[0])
qml.CNOT(wires=[0, 1])
return qml.expval(qml.PauliZ(0))
def circuit(x):
qml.RX(0.5, wires=[0])
return qml.expval(qml.PauliZ(0))
def circuit(*inp):
template(*inp, **hyperp)
return qml.expval(qml.Identity(0))
def circuit(x):
qml.RX(x, wires=[0])
ex = qml.expval(qml.PauliZ(wires=1))
qml.RY(0.5, wires=[0])
return qml.expval(qml.PauliZ(wires=0))
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))
def circuit(a):
qml.RX(a, wires=0)
return qml.var(qml.PauliZ(0))
def circuit(x):
qml.Rot(0.3, x, -0.2, wires=[0])
return qml.expval(qml.PauliZ(0))
def circuit(w, x=None):
qml.RX(x, wires=[0])
return qml.expval(qml.PauliZ(0))