qml.utils.unflatten

unflatten(flat, model)[source]

Wrapper for _unflatten().

Parameters
  • flat (array) – 1D array of items

  • model (array, Iterable, Number) – model nested structure

Raises

ValueError – if flat has more elements than model