Skip to content

Commit

Permalink
update python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
kalzoo committed Jun 6, 2023
1 parent 58f5beb commit 0f82f29
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 45 deletions.
45 changes: 0 additions & 45 deletions crates/python/qcs_sdk/grpc/models/translation.pyi

This file was deleted.

15 changes: 15 additions & 0 deletions crates/python/qcs_sdk/qpu/translation.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,18 @@ async def translate_async(
:raises TranslationError: If the `native_quil` program could not be translated.
"""
...

class TranslationOptions:
"""
Options for translating via the QCS API.
"""

def use_backend_v1(self) -> None:
"""
Use the v1 backend for translation, available on QCS since 2018.
"""

def use_backend_v2(self) -> None:
"""
Use the v2 backend for translation, available on QCS since 2023.
"""

0 comments on commit 0f82f29

Please sign in to comment.