You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem is solved by changing the device to default.qubit or changing the optimizer. The problem isn't present with default.qubit and parameter-shift, so this isn't the cause.
Expected behavior
qml.ShotAdaptiveOptimizer should work with qiskit.aer.
Actual behavior
It throws an error.
Additional information
First reported here: https://discuss.pennylane.ai/t/shot-adaptive-optimizer-limitations/4839/3
This problem is solved by changing the device to default.qubit or changing the optimizer. The problem isn't present with default.qubit and parameter-shift, so this isn't the cause.
Source code
Tracebacks
System information
Name: PennyLane Version: 0.36.0 Summary: 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. Home-page: https://github.com/PennyLaneAI/pennylane Author: Author-email: License: Apache License 2.0 Location:.venv/lib/python3.11/site-packages Requires: appdirs, autograd, autoray, cachetools, networkx, numpy, pennylane-lightning, requests, rustworkx, scipy, semantic-version, toml, typing-extensions Required-by: PennyLane-qiskit, PennyLane_Lightning Platform info: macOS-13.2.1-arm64-arm-64bit Python version: 3.11.6 Numpy version: 1.26.4 Scipy version: 1.13.0 Installed devices: - default.clifford (PennyLane-0.36.0) - default.gaussian (PennyLane-0.36.0) - default.mixed (PennyLane-0.36.0) - default.qubit (PennyLane-0.36.0) - default.qubit.autograd (PennyLane-0.36.0) - default.qubit.jax (PennyLane-0.36.0) - default.qubit.legacy (PennyLane-0.36.0) - default.qubit.tf (PennyLane-0.36.0) - default.qubit.torch (PennyLane-0.36.0) - default.qutrit (PennyLane-0.36.0) - default.qutrit.mixed (PennyLane-0.36.0) - null.qubit (PennyLane-0.36.0) - qiskit.aer (PennyLane-qiskit-0.36.0) - qiskit.basicaer (PennyLane-qiskit-0.36.0) - qiskit.basicsim (PennyLane-qiskit-0.36.0) - qiskit.ibmq (PennyLane-qiskit-0.36.0) - qiskit.ibmq.circuit_runner (PennyLane-qiskit-0.36.0) - qiskit.ibmq.sampler (PennyLane-qiskit-0.36.0) - qiskit.remote (PennyLane-qiskit-0.36.0) - lightning.qubit (PennyLane_Lightning-0.36.0)
Existing GitHub issues
The text was updated successfully, but these errors were encountered: