Skip to content

Commit e453314

Browse files
committed
Merge branch 'main' into add-optimisation-level-3
2 parents 7e62b9e + 5d8d29e commit e453314

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/Quantinuum_chemistry_chemically_aware_ucc.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@
12641264
" PauliPartitionStrat,\n",
12651265
" MeasurementBitMap,\n",
12661266
")\n",
1267-
"from pytket.passes import auto_squash_pass, auto_rebase_pass\n",
1267+
"from pytket.passes import AutoSquash, AutoRebase\n",
12681268
"from pytket.backends.resulthandle import ResultHandle\n",
12691269
"from pytket.utils.operators import QubitPauliOperator\n",
12701270
"\n",
@@ -1290,8 +1290,8 @@
12901290
" c.append(mc)\n",
12911291
" cc = backend.get_compiled_circuit(c, optimisation_level=1)\n",
12921292
" if rebase_to_zzmax:\n",
1293-
" rebase_custom = auto_rebase_pass({OpType.ZZMax, OpType.PhasedX, OpType.Rz})\n",
1294-
" squash_custom = auto_squash_pass({OpType.PhasedX, OpType.Rz})\n",
1293+
" rebase_custom = AutoRebase({OpType.ZZMax, OpType.PhasedX, OpType.Rz})\n",
1294+
" squash_custom = AutoSquash({OpType.PhasedX, OpType.Rz})\n",
12951295
" rebase_custom.apply(cc)\n",
12961296
" squash_custom.apply(cc)\n",
12971297
" if isinstance(backend, QuantinuumBackend):\n",

0 commit comments

Comments
 (0)