qbraid.transpiler.requires_extras

requires_extras(*packages)[source]

Decorator factory to mark conversion functions that require additional dependencies beyond their “{source}_to_{target}” naming convention. It adds specified dependencies as attributes to the function.

Parameters:

*packages (str) – The names of the required additional dependencies.

Returns:

A decorator that marks a function with the required dependencies.

Return type:

Callable