Created a Modified Version of The PennyLane Built-in ShotAdaptiveOptimiser Object to Make It Work On Depth-1 Circuits
The fact that Pennylane's built-in ShotAdaptiveOptimiser
is currently not working on depth-1 circuit has been documented in the following:
- Xanadu Discussion Forum: Shot Adaptive Optimiser not Implemented Correctly in Pennylane?
- PennyLane Github: [BUG] ShotAdaptiveOptimiser Number of Shots to Use Vector Missing An Axis after First Iteration #4207
Created a Jupyter Notebook showing an example of the pennylane built-in ShotAdaptiveOptimiser
failing to work with circuits of length 1. Moreover, a custom version of the ShotAdaptiveOptimiser
has been created to correct the error and make it work on depth-1 circuits.