Skip to content

Commit bfb7503

Browse files
authored
Fix tket error in document generation (#464)
- pytket recently restructured its extensions to make each submodules so the cirq_to_tket function needs to be imported specifically from the submodule.
1 parent a62b4fe commit bfb7503

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/qaoa/routing_with_tket.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,10 @@
241241
"outputs": [],
242242
"source": [
243243
"import pytket\n",
244+
"from pytket.extensions.cirq import cirq_to_tk\n",
244245
"from recirq.qaoa.placement import _device_to_tket_device\n",
245246
"\n",
246-
"tk_circuit = pytket.extensions.cirq.cirq_to_tk(circuit)\n",
247+
"tk_circuit = cirq_to_tk(circuit)\n",
247248
"tk_device = _device_to_tket_device(device)"
248249
]
249250
},

0 commit comments

Comments
 (0)