zero_ham(3)
zero_ham(3).dtype
u0
u_series, result = ihu(ham_func, u0, T, no_time_step_for_eval,)
u_series.shape
u_series[:, :, 0]
u_series[:, :, -1]
-1j*zero_ham(3)@u0
zero_ham(3)
zero_ham(3).dtype
u0
u_series, result = ihu(ham_func, u0, T, no_time_step_for_eval,)
u_series.shape
u_series[:, :, 0]
u_series[:, :, -1]
-1j*zero_ham(3)@u0
identity_ham(3)
identity_ham(3).dtype
u0
u_series, result = ihu(ham_func, u0, T, no_time_step_for_eval,)
u_series.shape
u_series[:, :, 0]
u_series[:, :, -1]
-1j*identity_ham(3)@u0
len(mere_result.states)
q_ham(2)
u0
u_series, result = ihu(ham_func, u0, T, no_time_step_for_eval,)
u_series.shape
psi0_ndarray
psi0_ndarray.shape
upsi[:, 0]
mere_result.states[0]
AssertionError Traceback (most recent call last)
<ipython-input-101-486ddf98e48b> in
[... skipping hidden 1 frame]
~/anaconda3/envs/nbdev/lib/python3.8/site-packages/numpy/testing/_private/utils.py in assert_array_compare(comparison, x, y, err_msg, verbose, header, precision, equal_nan, equal_inf) 838 verbose=verbose, header=header, 839 names=('x', 'y'), precision=precision) --> 840 raise AssertionError(msg) 841 except ValueError: 842 import traceback
AssertionError: Not equal to tolerance rtol=0.01, atol=0.001
Mismatched elements: 1 / 2 (50%) Max absolute difference: 0.00150303 Max relative difference: 1084.59125754 x: array([0.999917+0.j , 0. -0.001502j]) y: array([1.+0.0000e+00j, 0.+1.3858e-06j])
Fails for atol < 1e-02