PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network.
yeah should be able to change line 146 of qsvt.py to 'if global_phase', as wx convention's angle change is already accounted for in standard return of line 148
Expected behavior
This code should work:
Actual behavior
UnboundLocalError: local variable 'global_phase_op' referenced before assignment
Additional information
Bug found by Jarret, working on the QSVT project
Source code
No response
Tracebacks
No response
System information
Existing GitHub issues