CQCL / pytket-docs

User manual and example notebooks for the pytket quantum computing toolkit
https://docs.quantinuum.com/tket/user-guide/
Apache License 2.0
331 stars 90 forks source link

Use renderer more in circuit construction manual #332

Closed CalMacCQ closed 4 months ago

CalMacCQ commented 5 months ago

Description

I've done a pass over the Circuit construction section of the manual using the circuit renderer in place of circ.get_commands()

I've also made some changes to the section on CircBox particularly with the Circuit.add_circbox_with_regmap and Circuit.add_circbox_regwise methods.

I think some of the code examples need to be updated too. Maybe thats best done in another PR.

closes #331

CalMacCQ commented 4 months ago

One formatting error, one typo, and one minor comment. Otherwise this is a very good change that helps readability and approachability.

In reading through the build, I also spotted an additional formatting error on line 1317 (mixing URL and directive links for KAKDecomposition)

Thanks for the review :) I've made the suggested changes and fixed the KAK referencing mistake.