We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4a1d56 commit 93b98bcCopy full SHA for 93b98bc
pyqrackising/otoc.py
@@ -10,7 +10,7 @@
10
11
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]):
12
n_bias = n_qubits + 1
13
- if h <= epsilon:
+ if (abs(h) <= epsilon) or (abs(t) <= epsilon):
14
bias = np.empty(n_bias, dtype=np.float64)
15
bias[0] = 1.0
16
return bias
0 commit comments