qml.math.get_canonical_interface_name

get_canonical_interface_name(user_input)[source]

Helper function to get the canonical interface name.

Parameters:

interface (str, Interface) – reference interface

Raises:

ValueError – key does not exist in the interface map

Returns:

canonical interface

Return type:

Interface