def dumps(blackbird):
    """Serialize a blackbird program to a string.

    Args:
        blackbird (BlackbirdProgram): a :class:`BlackbirdProgram` object

    Returns:
        str: the serialized Blackbird program
    """
    return blackbird.serialize()