DebugExtension

class tket.extensions.DebugExtension[source]

Bases: TketExtension

Extension for debugging 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]

Return the debug extension

Return type:

Extension

__init__()
state_result(name, size)[source]

Report the state of given qubits in the given order.

Return type:

ExtOp

Args:

name: The name of the state result to report. size: The size of the qubit array.

property state_result_def: OpDef

Report the state of given qubits in the given order.

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

property version: Version

The version of the extension