qml.operation.has_unitary_gen

has_unitary_gen = BooleanFn(has_unitary_gen)[source]

Returns True if an operator has a unitary_generator according to the has_unitary_generator flag.