qml.math.get_dtype_name

get_dtype_name(x)[source]

An interface independent way of getting the name of the datatype.

>>> x = tf.Variable(0.1)
>>> qml.math.get_dtype_name(tf.Variable(0.1))
'float32'

Contents

Using PennyLane

Release news

Development

API

Internals