Skip to content

Commit

Permalink
Change build_if_necessary default
Browse files Browse the repository at this point in the history
  • Loading branch information
rmshaffer committed May 21, 2024
1 parent ee12426 commit e3fc7a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/autoqasm/program/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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().
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,5 @@ commands =
[test-deps]
deps =
# If you need to test on a certain branch, add @<branch-name> 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

0 comments on commit e3fc7a0

Please sign in to comment.