Skip to content

Commit

Permalink
minor typecheck fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dakk committed Jul 8, 2024
1 parent f42be91 commit 3fcbf9e
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 67 deletions.
6 changes: 3 additions & 3 deletions docs/source/example_big_circuit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -35,14 +35,14 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"QCircuit<test>(21984 gates, 1044 qubits)\n"
"QCircuit<test>(21831 gates, 1036 qubits)\n"
]
}
],
Expand Down
10 changes: 5 additions & 5 deletions docs/source/example_bqm_polynomial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -39,7 +39,7 @@
" (_ret.5, x.5)]"
]
},
"execution_count": 1,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -50,15 +50,15 @@
"\n",
"@qlassf\n",
"def poly(x: Qfixed[3, 3], y: Qfixed[3, 3]) -> Qfixed[3, 3]:\n",
" return x * 3 - y * 2 + 1\n",
" return x * 3 - y * 2 + 1.0\n",
"\n",
"\n",
"poly.expressions"
]
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand All @@ -77,7 +77,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand Down
Loading

0 comments on commit 3fcbf9e

Please sign in to comment.