Skip to content

Commit

Permalink
fix examples tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Simone-Bordoni committed Nov 10, 2023
1 parent 486dd6d commit 73bbeb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/source/code-examples/advancedexamples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 73bbeb3

Please sign in to comment.