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

fix: update faulty manual example on `AerBackend` compilation #337

Closed CalMacCQ closed 4 months ago

CalMacCQ commented 4 months ago

Description

This example snippet was erroring out causing the manual build to fail. Seems the circuit was always valid for AerBackend and so the compiled_circ variable was unreachable. Not sure what changed here to explain this.

In any case I've updated the snippet so that the original circuit has a CnRy gate which needs to be compiled down for the circuit to be valid for AerBackend.

Related issues

Please mention any github issues addressed by this PR.

Checklist