qiskit/pulse/ops.py
def flatten(schedule: ScheduleComponent, name: str = None) -> Schedule:
    """Create a flattened schedule.

    Args:
        schedule: Schedules to flatten
        name: Name of the new schedule. Defaults to first element of `schedules`
    """
    if name is None:
        name = schedule.name

    return Schedule(*schedule.instructions, name=name)
def flatten(schedule: ScheduleComponent, name: str = None) -> Schedule:
    if name is None:
        name = schedule.name

    return Schedule(*schedule.instructions, name=name)
def flatten ( schedule : ScheduleComponent , name : str = None ) -> Schedule : if name is None : name = schedule . name return Schedule ( * schedule . instructions , name = name )
Create a flattened schedule.

    Args:
        schedule: Schedules to flatten
        name: Name of the new schedule. Defaults to first element of `schedules`
Create a flattened schedule .