def get_segment_qname(segment):
    """
    Return the qualified name of a read segment.

    :param segment: read segment
    :type segment: pysam.libcalignedsegment.AlignedSegment
    :return: qualified name
    :rtype: str or unicode
    """
    return segment.qname