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.
should return similar results no matter whether we use lightning.qubit or default.qubit as the device.
Actual behavior
However, if the device is lightning.qubit, the output is Array(0.85154057, dtype=float32, weak_type=True) while if we use default.qubit the result is Array([0.85154057], dtype=float32).
Expected behavior
The following code
should return similar results no matter whether we use
lightning.qubit
ordefault.qubit
as the device.Actual behavior
However, if the device is
lightning.qubit
, the output isArray(0.85154057, dtype=float32, weak_type=True)
while if we usedefault.qubit
the result isArray([0.85154057], dtype=float32)
.Additional information
No response
Source code
No response
Tracebacks
No response
System information
Existing GitHub issues