From 98b6d0295f148f83d9d2d635fb21094ecfaec91e Mon Sep 17 00:00:00 2001 From: Abe Coull <85974725+math411@users.noreply.github.com> Date: Thu, 25 Jul 2024 16:07:40 -0700 Subject: [PATCH] fix: Client configuration is passed to all qcs_sdk methods (#1792) * feat: allow client to be passed in to get qulit calibrations * Update pyquil/api/_compiler.py Co-authored-by: Marquess Valdez * add the client to the missing call in the compiler calls * fix indents --------- Co-authored-by: Marquess Valdez Co-authored-by: Coull --- pyquil/api/_compiler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyquil/api/_compiler.py b/pyquil/api/_compiler.py index 2729fa612..0ce1e9228 100644 --- a/pyquil/api/_compiler.py +++ b/pyquil/api/_compiler.py @@ -122,6 +122,7 @@ def native_quil_to_executable( num_shots=nq_program.num_shots, quantum_processor_id=self.quantum_processor_id, translation_options=api_options or self.api_options, + client=self._client_configuration, ) ro_sources = translated_program.ro_sources or {} @@ -135,6 +136,7 @@ def native_quil_to_executable( def _fetch_calibration_program(self) -> Program: response = get_quilt_calibrations( quantum_processor_id=self.quantum_processor_id, + client=self._client_configuration, ) return Program(response)