- 
                Notifications
    You must be signed in to change notification settings 
- Fork 706
          fix: improve parameter batch handling for Z-basis gates in default.mixed
          #8251
        
          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
Conversation
      
        
              This comment was marked as resolved.
        
        
      
    
  This comment was marked as resolved.
| Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@           Coverage Diff           @@
##           master    #8251   +/-   ##
=======================================
  Coverage   99.39%   99.39%           
=======================================
  Files         551      551           
  Lines       57214    57216    +2     
=======================================
+ Hits        56870    56872    +2     
  Misses        344      344           ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
 | 
default.mixed
      …ylane into fix-batch-eigvals-issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! Have we checked if this works for the user's circuit now:
import pennylane as qml
@qml.qnode(device=qml.device("default.mixed", wires=1))
def circuit(theta):
    qml.RZ(theta, wires=0)
    return qml.density_matrix(wires=[0])
circuit(np.array([1,2]))
Context:
See #8244.
Description of the Change:
Patches the logic so the correct expand shape is given to
.reshape.Fixes #8244
[sc-99115]