From 4d713cfb7433c90cc41b04509efa1db6cd344257 Mon Sep 17 00:00:00 2001 From: rich Date: Fri, 13 Oct 2023 12:19:37 -0500 Subject: [PATCH] change default dd strategy to "static_context_aware" --- cirq-superstaq/cirq_superstaq/service.py | 4 ++-- qiskit-superstaq/qiskit_superstaq/superstaq_backend.py | 4 ++-- qiskit-superstaq/qiskit_superstaq/superstaq_provider.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cirq-superstaq/cirq_superstaq/service.py b/cirq-superstaq/cirq_superstaq/service.py index 64a0a9a82..7f5c8b6c3 100644 --- a/cirq-superstaq/cirq_superstaq/service.py +++ b/cirq-superstaq/cirq_superstaq/service.py @@ -725,7 +725,7 @@ def ibmq_compile( circuits: Union[cirq.Circuit, Sequence[cirq.Circuit]], target: str = "ibmq_qasm_simulator", dynamical_decoupling: bool = True, - dd_strategy: str = "dynamic", + dd_strategy: str = "static_context_aware", **kwargs: Any, ) -> css.compiler_output.CompilerOutput: """Compiles and optimizes the given circuit(s) to the target IBMQ device. @@ -738,7 +738,7 @@ def ibmq_compile( target: String of target IBMQ device. dynamical_decoupling: Applies dynamical decoupling optimization to circuit(s). dd_strategy: Method to use for placing dynamical decoupling operations; either - "dynamic" (default setting), "static", or "static_context_aware". + "dynamic", "static", or "static_context_aware" (default). kwargs: Other desired `ibmq_compile` options. Returns: diff --git a/qiskit-superstaq/qiskit_superstaq/superstaq_backend.py b/qiskit-superstaq/qiskit_superstaq/superstaq_backend.py index 75289505a..a03f421b8 100644 --- a/qiskit-superstaq/qiskit_superstaq/superstaq_backend.py +++ b/qiskit-superstaq/qiskit_superstaq/superstaq_backend.py @@ -262,7 +262,7 @@ def ibmq_compile( self, circuits: Union[qiskit.QuantumCircuit, Sequence[qiskit.QuantumCircuit]], dynamical_decoupling: bool = True, - dd_strategy: str = "dynamic", + dd_strategy: str = "static_context_aware", **kwargs: Any, ) -> qss.compiler_output.CompilerOutput: """Compiles and optimizes the given circuit(s) for IBMQ devices. @@ -271,7 +271,7 @@ def ibmq_compile( circuits: The `qiskit.QuantumCircuit`(s) to compile. dynamical_decoupling: Applies dynamical decoupling optimization to circuit(s). dd_strategy: Method to use for placing dynamical decoupling operations; either - "dynamic" (default setting), "static", or "static_context_aware". + "dynamic", "static", or "static_context_aware" (default). kwargs: Other desired compile options. Returns: diff --git a/qiskit-superstaq/qiskit_superstaq/superstaq_provider.py b/qiskit-superstaq/qiskit_superstaq/superstaq_provider.py index b33b69964..d603f631b 100644 --- a/qiskit-superstaq/qiskit_superstaq/superstaq_provider.py +++ b/qiskit-superstaq/qiskit_superstaq/superstaq_provider.py @@ -270,7 +270,7 @@ def ibmq_compile( circuits: Union[qiskit.QuantumCircuit, Sequence[qiskit.QuantumCircuit]], target: str = "ibmq_qasm_simulator", dynamical_decoupling: bool = True, - dd_strategy: str = "dynamic", + dd_strategy: str = "static_context_aware", **kwargs: Any, ) -> qss.compiler_output.CompilerOutput: """Returns pulse schedule(s) for the given qiskit circuit(s) and target. @@ -280,7 +280,7 @@ def ibmq_compile( target: A string containing the name of a target IBMQ backend. dynamical_decoupling: Applies dynamical decoupling optimization to circuit(s). dd_strategy: Method to use for placing dynamical decoupling operations; either - "dynamic" (default setting), "static", or "static_context_aware". + "dynamic", "static", or "static_context_aware" (default). kwargs: Other desired ibmq_compile options. Returns: