extensionsΒΆ
HUGR extension definitions for tket circuits.
Extensions may be imported directly as follows:
>>> import tket.extensions as ext
>>>
>>> argument_extension = ext.argument()
>>> debug_extension = ext.debug()
>>> futures_extension = ext.futures()
>>> global_phase_extension = ext.global_phase()
>>> gpu_extension = ext.gpu()
>>> guppy_extension = ext.guppy()
>>> measurement_extension = ext.measurement()
>>> modifier_extension = ext.modifier()
>>> qsystem_extension = ext.qsystem()
>>> qsystem_helios_extension = ext.qsystem_helios()
>>> qsystem_sol_extension = ext.qsystem_sol()
>>> qsystem_random_extension = ext.qsystem_random()
>>> qsystem_utils_extension = ext.qsystem_utils()
>>> quantum_extension = ext.quantum()
>>> result_extension = ext.result()
>>> rotation_extension = ext.rotation()
>>> wasm_extension = ext.wasm()
>>>
>>> read_arg_op = argument_extension.get_op("read_arg")
OpDef(name='read_arg', signature=OpDefSig(poly_func=PolyFuncType(params=[StringParam(), TypeTypeParam(bound=TypeBound.Linear)], body=FunctionType([], [$1])), binary=False), description='Read a runtime argument of the given type identified by a string tag', misc={})
>>> read_arg_op.description
'Read a runtime argument of the given type identified by a string tag'
>>> read_arg_op.signature
OpDefSig(poly_func=PolyFuncType(params=[StringParam(), TypeTypeParam(bound=TypeBound.Linear)], body=FunctionType([], [$1])), binary=False)
Classes
Operations for reading runtime entrypoint arguments. |
|
Extension for debugging operations. |
|
Future type and handling operations. |
|
Operation to add global phase to unitary operations. |
|
GPU interop operations. |
|
Guppy-specific operations. |
|
Operations on measurement types. |
|
Control, dagger and power modifiers for unitary operations. |
|
Deprecated (since 0.13.0): use |
|
Operations for the Helios platform (tket.qsystem.helios). |
|
QSystem's random operations. |
|
Operations for the Sol platform (tket.qsystem.sol). |
|
QSystem's utility operations. |
|
TKET's standard quantum operations. |
|
Result reporting operations. |
|
Rotation type for TKET's quantum operations. |
|
WASM interop operations. |