Hi,
Today, my code does not work anymore. It seems that it is no longer possible to measure several observables at the same time.
Here is my code:
@jax.jit
def Circuits_Observable_listA(params, inputs):
dev = qml.device('default.qubit.jax', wires=n_qubits//2)
@jax.jit
@qml.qnode(dev, interface='jax', diff_method="backprop")
def qnode(params, inputs):
for i in range(n_qubits//2):
qml.RX(jnp.pi*inputs[i], wires=i)
brick_wall_entangling(params)
return [qml.expval(Obs) for Obs in H_overlap_A]
return qnode(params, inputs)
and I get the error:
AttributeError Traceback (most recent call last)
/usr/local/lib/python3.8/dist-packages/autoray/autoray.py in shape(x)
879 @compose
880 def shape(x):
--> 881 return x.shape
882
883
AttributeError: 'range' object has no attribute 'shape'
Is there any change in the library?
Thanks a lot