The strawberryfields.tf
device in the PennyLane-Strawberryfields plugin is Strawberry Field’s Fock basis simulator backend written in TensorFlow.
Recommended for:
To learn more, please visit the device documentation:
See all PennyLane-Strawberry Fields devices:
The strawberryfields.fock
device can be installed with:
pip install pennylane-sf
For more details on installation and dependencies, visit the PennyLane-Strawberry Fields installation page.
Initialize the device in PennyLane with:
import tensorflow as tf import pennylane as qml dev = qml.device('strawberryfields.tf', wires=2, cutoff_dim=10)
For more details on device settings and keyword arguments, see the device documentation.