in ansatz(pars, choice)
79 if choice == “RyCz”:
80 for i in range(0,dep_ansatz):
—> 81 qml.broadcast(unitary = qml.RY, wires = range(1,noq+1), pattern = ‘single’, parameters = pars[i*noq:(i+1)*noq])
82 qml.broadcast(unitary = qml.CZ, wires = range(1,noq+1), pattern = ‘ring’)
83 # elif choice =~/.local/lib/python3.7/site-packages/pennylane/templates/decorator.py in wrapper(*args, **kwargs)
59 def wrapper(*args, **kwargs):
60 with OperationRecorder() as rec:
—> 61 func(*args, **kwargs)
62
63 return rec.queue~/.local/lib/python3.7/site-packages/pennylane/templates/broadcast.py in broadcast(unitary, wires, pattern, parameters, kwargs)
527 # check that there are enough parameters for pattern
528 if parameters is not None:
→ 529 shape = get_shape(parameters)
530
531 # specific error message for ring edge case of 2 wires~/.local/lib/python3.7/site-packages/pennylane/templates/utils.py in get_shape(inpt)
93 shape = inpt.shape
94 except AttributeError:
—> 95 raise ValueError(“could not extract shape of object of type {}”.format(type(inpt)))
96
97 # turn result into tuple to avoid type TensorShapeValueError: could not extract shape of object of type <class ‘autograd.builtins.SequenceBox’>
I keep getting this error when I changed the device from default.qubit to default.qubit.autograd. I am not able to diagnose the reason for error.
Also I am a bit new in this field I would like to know if there is GPU version of any qml.device ?