Hi, I provided the following solution which is not accepted
def create_one_minus():
#qml.MottonenStatePreparation(state_vector=np.array([0,0,1,-1])/np.sqrt(2), wires=range(2))
qml.PauliX(0)
qml.Hadamard(1)
qml.PauliZ(1)
return qml.expval(qml.PauliZ(0) @ qml.PauliX(1))
I cannot use qml.MottonenStatePreparation
either, but that may be intended. This solution
def create_one_minus():
qml.PauliX(0)
qml.PauliX(1)
qml.Hadamard(1)
return qml.expval(qml.PauliZ(0) @ qml.PauliX(1))
works however, but all of them yield the same state. Is that expected, or is it a bug?