зеркало из https://github.com/microsoft/Quantum.git
Address reviewer comments.
This commit is contained in:
Родитель
30499458af
Коммит
f07cad9574
|
@ -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()"
|
||||
|
|
Загрузка…
Ссылка в новой задаче