Skip to content

In pytket migration guide recommend allocating and deallocating qubits outside pytket #89

@ss2165

Description

@ss2165

https://docs.quantinuum.com/guppy/migration_guide.html

We already do that in the example but we don't say why it is best practice, can be done with a Note box. e.g.

Note

It is best to use pytket loading for pure unitary circuits where possible. Guppy's ownership doesn't map well to pytket Circuits where qubits are typically alive from start to finish and measurement is projective. It does map to Guppy borrowing well though - so try to allocate and deallocate (measure/discard) qubits in Guppy, and pass them into the loaded pytket function.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions