Skip to content

Commit

Permalink
adding modularized generate circuits function
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivansh20128 committed Dec 23, 2024
1 parent cc33508 commit b71d3fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/source/guide/ddd-1-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`.
Expand Down

0 comments on commit b71d3fd

Please sign in to comment.