




'''simple docstring'''
import doctest

import projectq
from projectq.ops import H, Measure
def 							snake_case_    (  a__						:      projectq.cengines._main.MainEngine     ):



    """simple docstring"""




    __lowercase     							=		quantum_engine.allocate_qubit()
    H | qubit
    Measure | qubit
    return int(a__     )


if __name__ == "__main__":
  doctest.testmod()

  # initialises a new quantum backend
  A				: Union[str, Any]					      =			projectq.MainEngine()

  # Generate a list of 10 random numbers
  A				: Tuple					      =			[get_random_number(quantum_engine) for _ in range(10)]

  # Flushes the quantum engine from memory
  quantum_engine.flush()

  print("""Random numbers""", random_numbers_list)










'''simple docstring'''
import os
def 							snake_case_    (  ):



    """simple docstring"""




    __lowercase     							=		os.path.dirname(os.path.realpath(a__     )     )
    __lowercase     							=		os.path.join(a__       ,"""triangle.txt"""     )

    with open(a__     ) as f:
        __lowercase     							=		f.readlines()

    __lowercase     							=		[[int(a__     ) for y in x.rstrip("""\r\n"""     ).split(""" """     )] for x in triangle]

    for i in range(1       ,len(a__     )     ):
        for j in range(len(a[i]     )     ):
            __lowercase     							=		a[i - 1][j] if j != len(a[i - 1]     ) else 0
            __lowercase     							=		a[i - 1][j - 1] if j > 0 else 0
            a[i][j] += max(a__       ,a__     )
    return max(a[-1]     )


if __name__ == "__main__":
  print(solution())




