From 58dd29b5e569544c0a6d8de82fbd145cb10a0dd8 Mon Sep 17 00:00:00 2001 From: Alec Edgington Date: Mon, 18 Nov 2024 16:14:07 +0000 Subject: [PATCH] Regenerate stubs. --- pytket/pytket/_tket/passes.pyi | 2 ++ pytket/pytket/_tket/transform.pyi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pytket/pytket/_tket/passes.pyi b/pytket/pytket/_tket/passes.pyi index e9fd51a094..ea4a788b17 100644 --- a/pytket/pytket/_tket/passes.pyi +++ b/pytket/pytket/_tket/passes.pyi @@ -439,6 +439,8 @@ def GlobalisePhasedX(squash: bool = True) -> BasePass: Replaces any PhasedX gates with global NPhasedX gates. By default, this transform will squash all single-qubit gates to PhasedX and Rz gates before proceeding further. Existing non-global NPhasedX will not be preserved. This is the recommended setting for best performance. If squashing is disabled, each non-global PhasedX gate will be replaced with two global NPhasedX, but any other gates will be left untouched. + DEPRECATED: This pass will be removed after pytket version 1.39. + :param squash: Whether to squash the circuit in pre-processing (default: true). If squash=true (default), the `GlobalisePhasedX` transform's `apply` method will always return true. For squash=false, `apply()` will return true if the circuit was changed and false otherwise. diff --git a/pytket/pytket/_tket/transform.pyi b/pytket/pytket/_tket/transform.pyi index ce620128b2..385a19b780 100644 --- a/pytket/pytket/_tket/transform.pyi +++ b/pytket/pytket/_tket/transform.pyi @@ -158,6 +158,8 @@ class Transform: Replaces any PhasedX gates with global NPhasedX gates. By default, this transform will squash all single-qubit gates to PhasedX and Rz gates before proceeding further. Existing non-global NPhasedX will not be preserved. This is the recommended setting for best performance. If squashing is disabled, each non-global PhasedX gate will be replaced with two global NPhasedX, but any other gates will be left untouched. + DEPRECATED: This transform will be removed after pytket version 1.39. + :param squash: Whether to squash the circuit in pre-processing (default: true). If squash=true (default), the `GlobalisePhasedX` transform's `apply` method will always return true. For squash=false, `apply()` will return true if the circuit was changed and false otherwise.