From 73bbeb3222fdead8e4dd479ec67e2a9a605b36d4 Mon Sep 17 00:00:00 2001 From: simone bordoni Date: Fri, 10 Nov 2023 18:46:33 +0400 Subject: [PATCH] fix examples tests --- doc/source/code-examples/advancedexamples.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/source/code-examples/advancedexamples.rst b/doc/source/code-examples/advancedexamples.rst index 15d8d5f1ad..2adbae6128 100644 --- a/doc/source/code-examples/advancedexamples.rst +++ b/doc/source/code-examples/advancedexamples.rst @@ -2049,6 +2049,8 @@ Multiple transpilation steps can be implemented using the :class:`qibo.transpile transpiled_circ, final_layout = custom_pipeline(circuit) # Optinally call assert_transpiling to check that the final circuit can be executed on hardware + # For this test it is necessary to get the initial layout + initial_layout = custom_pipeline.get_initial_layout() assert_transpiling( original_circuit=circuit, transpiled_circuit=transpiled_circ,