Skip to content

Commit

Permalink
fix: Client configuration is passed to all qcs_sdk methods (#1792)
Browse files Browse the repository at this point in the history
* feat: allow client to be passed in to get qulit calibrations

* Update pyquil/api/_compiler.py

Co-authored-by: Marquess Valdez <marquessavaldez@gmail.com>

* add the client to the missing call in the compiler calls

* fix indents

---------

Co-authored-by: Marquess Valdez <marquessavaldez@gmail.com>
Co-authored-by: Coull <accoull@amazon.com>
  • Loading branch information
3 people authored Jul 25, 2024
1 parent 85de2d3 commit 98b6d02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyquil/api/_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand All @@ -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)

Expand Down

0 comments on commit 98b6d02

Please sign in to comment.