From b71d3fdbf316924e9684932df51af6f55dd9523d Mon Sep 17 00:00:00 2001 From: Shivansh Mittal Date: Mon, 23 Dec 2024 22:32:15 +0530 Subject: [PATCH] adding modularized generate circuits function --- docs/source/guide/ddd-1-intro.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/source/guide/ddd-1-intro.md b/docs/source/guide/ddd-1-intro.md index cf0871e3e6..f69816c79c 100644 --- a/docs/source/guide/ddd-1-intro.md +++ b/docs/source/guide/ddd-1-intro.md @@ -83,6 +83,13 @@ from mitiq import ddd rule = ddd.rules.yy ``` +## Generate circuits with DDD sequences +We can now generate a list of circuits which are copy of the original circuit with the DDD sequences inserted. +```{code-cell} ipython3 +circuits_with_ddd = ddd.generate_circuits_with_ddd(circuit=circuit, rule=rule) +print(circuits_with_ddd[0]) +``` + ## Apply DDD Digital dynamical decoupling can be easily implemented with the function {func}`.execute_with_ddd()`.