From e3fc7a035746c0e512c044c56d85ae556209e485 Mon Sep 17 00:00:00 2001 From: Ryan Shaffer <3620100+rmshaffer@users.noreply.github.com> Date: Tue, 21 May 2024 09:56:43 -0400 Subject: [PATCH] Change build_if_necessary default --- setup.py | 2 +- src/autoqasm/program/program.py | 4 ++-- tox.ini | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 0cafbff..562c4bc 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ package_dir={"": "src"}, install_requires=[ # Pin the latest commit of mcm-sim branch of amazon-braket/amazon-braket-sdk-python.git - "amazon-braket-sdk @ git+https://github.com/amazon-braket/amazon-braket-sdk-python.git@da74ee713c200ac0803704bb0b4c87f9d0100682#egg=amazon-braket-sdk", # noqa E501 + "amazon-braket-sdk @ git+https://github.com/amazon-braket/amazon-braket-sdk-python.git@677d8107225098e32a127d3c7a4a8767d63f9d7a#egg=amazon-braket-sdk", # noqa E501 "amazon-braket-default-simulator>=1.23.2", "oqpy~=0.3.5", "diastatic-malt", diff --git a/src/autoqasm/program/program.py b/src/autoqasm/program/program.py index 97809db..d833bfa 100644 --- a/src/autoqasm/program/program.py +++ b/src/autoqasm/program/program.py @@ -121,7 +121,7 @@ def build(self, device: Device | str | None = None) -> Program: def to_ir( self, ir_type: IRType = IRType.OPENQASM, - build_if_necessary: bool = False, + build_if_necessary: bool = True, serialization_properties: SerializationProperties = OpenQASMSerializationProperties(), ) -> str: """Serializes the program into an intermediate representation. @@ -130,7 +130,7 @@ def to_ir( ir_type (IRType): The IRType to use for converting the program to its IR representation. Defaults to IRType.OPENQASM. build_if_necessary (bool): Whether to allow the program to be implicitly - built as a side effect of calling this function. Defaults to False. + built as a side effect of calling this function. Defaults to True. serialization_properties (SerializationProperties): IR serialization configuration. Default to OpenQASMSerializationProperties(). diff --git a/tox.ini b/tox.ini index 572d24e..71656c1 100644 --- a/tox.ini +++ b/tox.ini @@ -133,5 +133,5 @@ commands = [test-deps] deps = # If you need to test on a certain branch, add @ after .git - git+https://github.com/amazon-braket/amazon-braket-sdk-python.git@da74ee713c200ac0803704bb0b4c87f9d0100682 # mcm-sim branch + git+https://github.com/amazon-braket/amazon-braket-sdk-python.git@677d8107225098e32a127d3c7a4a8767d63f9d7a # mcm-sim branch git+https://github.com/amazon-braket/amazon-braket-default-simulator-python.git