From 947e1ff162a4b8838ad4c71ba1991611c04e45a0 Mon Sep 17 00:00:00 2001 From: Doug Strain Date: Wed, 3 Jul 2024 14:56:31 -0700 Subject: [PATCH] Change to optimize_for_target_gateset in docs (#6658) - This doc had an incorrect name for the function. Changed to the correct one. --- cirq/transformers/target_gatesets/compilation_target_gateset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cirq/transformers/target_gatesets/compilation_target_gateset.py b/cirq/transformers/target_gatesets/compilation_target_gateset.py index 2396e8b0e02..59c3f11aca4 100644 --- a/cirq/transformers/target_gatesets/compilation_target_gateset.py +++ b/cirq/transformers/target_gatesets/compilation_target_gateset.py @@ -76,7 +76,7 @@ def transformer_with_kwargs( class CompilationTargetGateset(ops.Gateset, metaclass=abc.ABCMeta): """Abstract base class to create gatesets that can be used as targets for compilation. - An instance of this type can be passed to transformers like `cirq.convert_to_target_gateset`, + An instance of this type can be passed to transformers like `cirq.optimize_for_target_gateset`, which can transform any given circuit to contain gates accepted by this gateset. """