Open Qottmann opened 2 years ago
Interesting, if you use the following syntax it seems to work perfectly:
@qml.qnode(dev_ideal)
@qml.transforms.insert(noise_gate, noise_strength, position="all")
def qfunc(x):
qml.RY(x[0], wires=0)
qml.RZ(x[1], wires=0)
return qml.expval(H)
x = np.ones(2)
print(qfunc(x))
This is the intended syntax for the tape transform insert
as described in the docs. Was this syntax suggested somewhere else in a demo or the docs?
[sc-22556]
Expected behavior
qfunc to execute as expected (i.e. as without setting
grouping_type="qwc"
Actual behavior
Adding grouping breaks in the noisy simulator. Seems to be queuing issue.
Additional information
No response
Source code
Tracebacks
System information
Existing GitHub issues