qml.templates.utils.get_shape

get_shape(inpt)[source]

Turn inpt into an array and return its shape.

Parameters

inpt (scalar, list or array) – input to a qnode

Returns

shape of inpt

Return type

tuple