qml.interfaces.tf

This module contains the to_tf() function to convert Numpy-interfacing quantum nodes to TensorFlow compatible quantum nodes.

Functions

to_tf(qnode[, dtype])

Function that accepts a QNode, and returns a TensorFlow eager-execution-compatible QNode.

unflatten_tf(flat, model)

Restores an arbitrary nested structure to a flattened TF tensor.