-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] metric_tensor
with batches of tapes breaks on legacy devices
#7072
Comments
Note that this is not specific to For example:
Gives rise to the same error. |
This bug is about ordering of transforms, I suppose. |
And lightning qubit with broadcasting also causes the error:
|
We should at least start throwing at error here instead of waiting for the ml framework to fall over:
|
We have a new report of a weird issue with Could this be related to the same issues surfaced in this issue already? Here's the full error traceback
|
Expected behavior
The
metric_tensor
can be computed also if a measurement of a Hamiltonian leads to a batch of tapes being created, and also if a legacy device is used.Note that the metric tensor should not differ between the tapes in the batch, so only one tensor needs to be computed.
Actual behavior
On a legacy device like
default.mixed
in the legacy device API,metric_tensor
with a Hamiltonian measurement that leads to a batch of tapes breaks.Additional information
Also see this discussion in the forum.
Source code
Tracebacks
System information
Existing GitHub issues
The text was updated successfully, but these errors were encountered: