This commit is contained in:
Mathias Soeken 2023-08-24 10:51:28 +02:00
Родитель 30499458af
Коммит f07cad9574
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -38,7 +38,7 @@
"outputs": [],
"source": [
"workspace = Workspace(\n",
" resource_id = \"/\",\n",
" resource_id = \"\",\n",
" location = \"\",\n",
")"
]
@ -157,10 +157,10 @@
"source": [
"params = estimator.make_params(num_items=len(bitwidths) * len(target_params))\n",
"\n",
"for idx, (_, target_param) in enumerate(target_params):\n",
" for jdx, bitwidth in enumerate(bitwidths):\n",
" params.items[idx * len(bitwidths) + jdx].qubit_params = target_param\n",
" params.items[idx * len(bitwidths) + jdx].arguments[\"bitwidth\"] = bitwidth\n",
"for i, (_, target_param) in enumerate(target_params):\n",
" for j, bitwidth in enumerate(bitwidths):\n",
" params.items[i * len(bitwidths) + j].qubit_params = target_param\n",
" params.items[i * len(bitwidths) + j].arguments[\"bitwidth\"] = bitwidth\n",
"\n",
"job = estimator.submit(EstimateMultiplication, input_params=params)\n",
"results = job.get_results()"