Skip to content

Commit 93b98bc

Browse files
Edge case in OTOC
1 parent a4a1d56 commit 93b98bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyqrackising/otoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
def get_otoc_hamming_distribution(J=-1.0, h=2.0, z=4, theta=0.0, t=5, n_qubits=65, pauli_strings = ['X' + 'I' * 64]):
1212
n_bias = n_qubits + 1
13-
if h <= epsilon:
13+
if (abs(h) <= epsilon) or (abs(t) <= epsilon):
1414
bias = np.empty(n_bias, dtype=np.float64)
1515
bias[0] = 1.0
1616
return bias

0 commit comments

Comments
 (0)