Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
garrison committed May 3, 2024
1 parent 1a19c0f commit 8864c2c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@
"outputs": [],
"source": [
"transpiled_subobservables = {\n",
" label: SparsePauliOp(subobservables[label]).apply_layout(transpiled_subcircuits[label].layout).paulis\n",
" label: SparsePauliOp(subobservables[label])\n",
" .apply_layout(transpiled_subcircuits[label].layout)\n",
" .paulis\n",
" for label, circuit in subobservables.items()\n",
"}"
]
Expand All @@ -262,7 +264,9 @@
"from circuit_knitting.cutting import generate_cutting_experiments\n",
"\n",
"subexperiments, coefficients = generate_cutting_experiments(\n",
" circuits=transpiled_subcircuits, observables=transpiled_subobservables, num_samples=np.inf\n",
" circuits=transpiled_subcircuits,\n",
" observables=transpiled_subobservables,\n",
" num_samples=np.inf,\n",
")"
]
},
Expand Down

0 comments on commit 8864c2c

Please sign in to comment.