GuppyExtension

class tket.extensions.GuppyExtension[source]

Bases: TketExtension

Guppy-specific operations.

OPS()[source]

Return the operations defined by this extension

Return type:

list[OpDef]

TYPES()[source]

Return the types defined by this extension

Return type:

list[TypeDef]

__call__()[source]

Returns the guppy extension

Return type:

Extension

__init__()
drop(ty)[source]

Drop the input wire. Applicable to guppy affine types only.

Return type:

ExtOp

Args:

ty: The guppy affine type of the value to drop.

property drop_def: OpDef

Drop the input wire. Applicable to guppy affine types only.

This is the generic operation definition. For the instantiated operation, see drop.

property version: Version

The version of the extension