FloatingPointError: divide by zero encountered in log
The following discussion from !93 (merged) should be addressed:
-
@Berrysoft started a discussion: (+10 comments) 发现一点小问题。在使用 run 015489 跑 FSMP 的时候出现了不该出现的错误。
Traceback (most recent call last): File "/mnt/stage/berrysoft/waveform/./fsmp.py", line 63, in <module> (flip, s0_history, Δν_history, op_history, creations) = batch( File "/mnt/stage/berrysoft/waveform/analysis/fsmp/batch.py", line 162, in batch v_lc(tq["q_s"], e_move, loc[e_move, 0]) ) File "/mnt/stage/berrysoft/waveform/analysis/fsmp/batch.py", line 25, in v_lc return np.log(q_s[w_all, np.array(loc, dtype=np.uint32)]) FloatingPointError: divide by zero encountered in log上一次发现这个问题是 SER 错误导致的,不知道这次是因为什么。