Skip to content

Commit de77ed2

Browse files
Better hog_prob
1 parent 16ce9c4 commit de77ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/fc_tn_qiskit_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def calc_stats(ideal_probs, exp_probs, shots, depth):
9090
n_pow = len(ideal_probs)
9191
n = int(round(math.log2(n_pow)))
9292
mean_guess = 1 / n_pow
93-
model = 1 / n
93+
model = 1 / math.sqrt(n)
9494
threshold = statistics.median(ideal_probs)
9595
u_u = statistics.mean(ideal_probs)
9696
numer = 0

0 commit comments

Comments
 (0)