GlobalPhaseExtension¶ class tket.extensions.GlobalPhaseExtension[source]¶ Bases: TketExtension Operation to add global phase to unitary 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 quantum extension Return type: Extension __init__()¶ property global_phase: ExtOp¶ Applies a global phase to the circuit. property version: Version¶ The version of the extension