Hi Catalina
I am using qiskit.aer to model system of my own. I know that Qiskit.aer is noisy simulator backend. But when I am using backend = “statevector_simulator“ the output should be deterministic but the solution isn’t. I am using the same example present in the pennylane website.
import pennylane as qml
dev = qml.device('qiskit.aer', wires=2,backend='statevector_simulator')
@qml.qnode(dev)
def circuit(x, y, z):
qml.RZ(z, wires=[0])
qml.RY(y, wires=[0])
qml.RX(x, wires=[0])
qml.CNOT(wires=[0, 1])
return qml.expval(qml.PauliZ(wires=1))
circuit(0.2, 0.1, 0.3)
Please find the qml.about() result and pennylane-qiskit version.
Name: pennylane
Version: 0.42.3
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:
Author:
Author-email:
License-Expression: Apache-2.0
Location: /Users/s.poyyapakkam/miniconda3/envs/qml/lib/python3.11/site-packages
Requires: appdirs, autograd, autoray, cachetools, diastatic-malt, networkx, numpy, packaging, pennylane-lightning, requests, rustworkx, scipy, tomlkit, typing_extensions
Required-by: PennyLane-qiskit, pennylane_lightning
Platform info: macOS-15.4-arm64-arm-64bit
Python version: 3.11.8
Numpy version: 2.3.2
Scipy version: 1.16.1
Installed devices:
- qiskit.aer (PennyLane-qiskit-0.42.0)
- qiskit.basicaer (PennyLane-qiskit-0.42.0)
- qiskit.basicsim (PennyLane-qiskit-0.42.0)
- qiskit.remote (PennyLane-qiskit-0.42.0)
- lightning.qubit (pennylane_lightning-0.42.0)
- default.clifford (pennylane-0.42.3)
- default.gaussian (pennylane-0.42.3)
- default.mixed (pennylane-0.42.3)
- default.qubit (pennylane-0.42.3)
- default.qutrit (pennylane-0.42.3)
- default.qutrit.mixed (pennylane-0.42.3)
- default.tensor (pennylane-0.42.3)
- null.qubit (pennylane-0.42.3)
- reference.qubit (pennylane-0.42.3)
Name: PennyLane-qiskit
Version: 0.42.0
Summary: PennyLane plugin for Qiskit
Home-page: https://github.com/XanaduAI/pennylane-qiskit
Author:
Author-email:
License: Apache License 2.0
Location: /Users/s.poyyapakkam/miniconda3/envs/qml/lib/python3.11/site-packages
Requires: networkx, numpy, pennylane, qiskit, qiskit-aer, qiskit-ibm-runtime, sympy
Required-by:
Note: you may need to restart the kernel to use updated packages.
Please let me know if I am missing something.