qml.pytrees¶
Warning
Unless you are a PennyLane or plugin developer, you likely do not need to use these functions.
An internal module for working with pytrees.
Functions¶
|
Flattens a pytree into leaves and a structure. |
|
Returns True if |
|
Register a type with all available pytree backends. |
|
Bind data to a structure to reconstruct a pytree object. |
Classes¶
|
A pytree data structure, holding the type, metadata, and child pytree structures. |
code/qml_pytrees
Download Python script
Download Notebook
View on GitHub