quantnn/generic/__init__.py
def arange(module, start, end, step):
    """
    Crate array with stepped sequence of values.

    Arguments:
        module: The backend array corresponding to the given array.
        start: Start value of the sequence.
        end: Maximum value of the sequence.
        step: Step size.

    Return:
        1D array containing the sequence starting with the given start value
        increasing with the given step size up until the largest value that
        is strictly smaller than the given end value.
    """
    _import_modules()
    if module in [np, ma, jnp]:
        return module.arange(start, end, step)
    elif module == torch:
        return module.arange(start, end, step, dtype=torch.float)
    elif module == tf:
        return tf.range(start, end, step)
    raise UnknownModuleException(f"Module {module.__name__} not supported.")

    Crate array with stepped sequence of values.

    Arguments:
        module: The backend array corresponding to the given array.
        start: Start value of the sequence.
        end: Maximum value of the sequence.
        step: Step size.

    Return:
        1D array containing the sequence starting with the given start value
        increasing with the given step size up until the largest value that
        is strictly smaller than the given end value.
    
Crate array with stepped sequence of values.
Crate array with stepped sequence of values .
def arange(module, start, end, step):
    _import_modules()
    if module in [np, ma, jnp]:
        return module.arange(start, end, step)
    elif module == torch:
        return module.arange(start, end, step, dtype=torch.float)
    elif module == tf:
        return tf.range(start, end, step)
    raise UnknownModuleException(f"Module {module.__name__} not supported.")
def arange ( module , start , end , step ) : _import_modules ( ) if module in [ np , ma , jnp ] : return module . arange ( start , end , step ) elif module == torch : return module . arange ( start , end , step , dtype = torch . float ) elif module == tf : return tf . range ( start , end , step ) raise UnknownModuleException ( f"Module {module.__name__} not supported." )
Crate array with stepped sequence of values.
Crate array with stepped sequence of values .
"""
    Crate array with stepped sequence of values.

    Arguments:
        module: The backend array corresponding to the given array.
        start: Start value of the sequence.
        end: Maximum value of the sequence.
        step: Step size.

    Return:
        1D array containing the sequence starting with the given start value
        increasing with the given step size up until the largest value that
        is strictly smaller than the given end value.
    """
module
The backend array corresponding to the given array.
The backend array corresponding to the given array .
start
Start value of the sequence.
Start value of the sequence .
end
Maximum value of the sequence.
Maximum value of the sequence .
step
None