Esempio n. 1
0
#     {
#         'name': 't_0',
#         'ampl': [0, 1],
#     },
# ]

k = 0

T = 1 * mks

dt = (0.01/l)

nt = int(T/dt)

for i in _a:
    hr(100)
    # print(i[0][0])
    # w_0 = s_2 * i[0][0]
    # w_0 = s_2 * i['ampl'][0] + t_0 * i['ampl'][1]
    w_0 = s_2 * i[0][0] + t_0 * i[1][0]
    w_0.normalize()

    d = {}

    d['fidelity_t0'] = [Fidelity_full(w_0, t_0)]
    d['fidelity_s2'] = [Fidelity_full(w_0, s_2)]

    ro_t = ro_0 = DensityMatrix(w_0)

    time = 0
# nt = int(T/dt)

if mpirank == 0:
    # ----------------------------------
    # cavity.info()

    cprint('T:', 'green', end='')
    print(time_unit_full(T))

    cprint('dt:', 'green', end='')
    print(time_unit_full(dt))

    cprint('nt:', 'green', end='')
    print(nt)

    hr(50)
    # ----------------------------------
    # cprint('nt_batch:', 'green', end='')
    # print(nt_batch)

    cprint('lg_str:', 'green', end='')
    print(lg_str)

    cprint('dt_click:', 'green', end='')
    print(dt_click)

    cprint('dt_click_str:', 'green', end='')
    print(dt_click_str)

    cprint('out_path:', 'green', end='')
    print(out_path)