Skip to content

Commit c023172

Browse files
Replace "count" with "counts"
1 parent f7ce827 commit c023172

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

algorithms/number_theory_and_cryptography/elliptic_curves/elliptic_curve_discrete_log.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -964,11 +964,11 @@
964964
],
965965
"source": [
966966
"df = res.dataframe\n",
967-
"df_sorted = df.sort_values(\"count\", ascending=False)\n",
968-
"df_sorted[\"probability\"] = df_sorted[\"count\"] / df[\"count\"].sum()\n",
967+
"df_sorted = df.sort_values(\"counts\", ascending=False)\n",
968+
"df_sorted[\"probability\"] = df_sorted[\"counts\"] / df[\"counts\"].sum()\n",
969969
"\n",
970970
"print(f\"\\nQuantum Execution Results:\")\n",
971-
"print(f\"Total distinct pairs: {len(df)}, Total measurements: {df['count'].sum()}\")\n",
971+
"print(f\"Total distinct pairs: {len(df)}, Total measurements: {df['counts'].sum()}\")\n",
972972
"print(\"\\nTop 10 results:\")\n",
973973
"print(df_sorted.head(10))"
974974
]

algorithms/number_theory_and_cryptography/shor/shor.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@
694694
}
695695
],
696696
"source": [
697-
"df_filtered = df[df[\"count\"] > 10]\n",
697+
"df_filtered = df[df[\"counts\"] > 10]\n",
698698
"fracs = set()\n",
699699
"for phase_res in df_filtered.phase_var:\n",
700700
" processed_frac = continued_fraction_post_process(phase_res, modulo_num)\n",

functions/qmod_library_reference/classiq_open_library/amplitude_amplification/exact_amplitude_amplification.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@
121121
"id": "3",
122122
"metadata": {},
123123
"outputs": [],
124-
"source": [
125-
"assert sum(res.dataframe[res.dataframe.x == 1][\"count\"]) == res.num_shots"
126-
]
124+
"source": "assert sum(res.dataframe[res.dataframe.x == 1][\"counts\"]) == res.num_shots"
127125
},
128126
{
129127
"cell_type": "markdown",

0 commit comments

Comments
 (0)