From 1d967cfb22d63f604100a1aee0263c5b42ccc584 Mon Sep 17 00:00:00 2001 From: Fionn Malone Date: Wed, 11 Oct 2023 17:34:18 +0000 Subject: [PATCH] Fix imports. --- qualtran/bloqs/chemistry/trotter.ipynb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qualtran/bloqs/chemistry/trotter.ipynb b/qualtran/bloqs/chemistry/trotter.ipynb index a3946c5d6..9c2462d88 100644 --- a/qualtran/bloqs/chemistry/trotter.ipynb +++ b/qualtran/bloqs/chemistry/trotter.ipynb @@ -555,7 +555,8 @@ "import cirq\n", "import cirq_ft\n", "\n", - "from qualtran.resource_counting import get_bloq_counts_graph, GraphvizCounts, SympySymbolAllocator\n", + "from qualtran.resource_counting import get_bloq_counts_graph, SympySymbolAllocator\n", + "from qualtran.drawing import GraphvizCounts\n", "from qualtran.bloqs.util_bloqs import Split, Join, Allocate, Free\n", "from qualtran.bloqs.basic_gates.rotation import RotationBloq\n", "from qualtran.cirq_interop import CirqGateAsBloq\n", @@ -652,7 +653,8 @@ "metadata": {}, "outputs": [], "source": [ - "from qualtran.resource_counting import get_bloq_counts_graph, GraphvizCounts\n", + "from qualtran.resource_counting import get_bloq_counts_graph\n", + "from qualtran.drawing import GraphvizCounts\n", "from qualtran.bloqs.chemistry.trotter import KineticEnergy \n", "ke = KineticEnergy(4, 21)\n", "graph, sigma = get_bloq_counts_graph(ke, generalizer=generalize)\n", @@ -665,7 +667,8 @@ "metadata": {}, "outputs": [], "source": [ - "from qualtran.resource_counting import get_bloq_counts_graph, GraphvizCounts\n", + "from qualtran.resource_counting import get_bloq_counts_graph\n", + "from qualtran.drawing import GraphvizCounts\n", "from qualtran.bloqs.chemistry.trotter import PotentialEnergy \n", "pe = PotentialEnergy(4, 21)\n", "graph, sigma = get_bloq_counts_graph(pe, generalizer=generalize)\n",