Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjaskula-aws committed Mar 18, 2024
1 parent e60c277 commit b75bb74
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 26 deletions.
21 changes: 0 additions & 21 deletions src/braket/aws/aws_quantum_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,6 @@ def create(
those tasks do not need to be created with the reservation ARN.
Default: None.
quiet (bool): Sets the verbosity of the logger to low and does not report queue
position. Default is `False`.
reservation_arn (str | None): The reservation ARN provided by Braket Direct
to reserve exclusive usage for the device to run the quantum task on.
Note: If you are creating tasks in a job that itself was created reservation ARN,
those tasks do not need to be created with the reservation ARN.
Default: None.
Returns:
AwsQuantumTask: AwsQuantumTask tracking the quantum task execution on the device.
Expand Down Expand Up @@ -200,18 +191,6 @@ def create(
inputs = inputs or {}
gate_definitions = gate_definitions or {}

if reservation_arn:
create_task_kwargs.update(
{
"associations": [
{
"arn": reservation_arn,
"type": "RESERVATION_TIME_WINDOW_ARN",
}
]
}
)

if reservation_arn:
create_task_kwargs.update(
{
Expand Down
3 changes: 0 additions & 3 deletions src/braket/pulse/ast/free_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
from oqpy.program import Program
from oqpy.timing import OQDurationLiteral

def to_ast(self) -> ast.Identifier:
return self


class _FreeParameterTransformer(QASMTransformer):
"""Walk the AST and evaluate FreeParameterExpressions."""
Expand Down
2 changes: 1 addition & 1 deletion src/braket/pulse/pulse_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from braket.pulse.ast.qasm_transformer import _IRQASMTransformer
from braket.pulse.frame import Frame
from braket.pulse.pulse_sequence_trace import PulseSequenceTrace
from braket.pulse.waveforms import Waveform
from braket.pulse.waveforms import Waveform, WaveformDict
from braket.registers.qubit_set import QubitSet


Expand Down
6 changes: 5 additions & 1 deletion src/braket/pulse/waveforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
import random
import string
from abc import ABC, abstractmethod
from typing import Optional, Union
from copy import deepcopy
from typing import TYPE_CHECKING, Any, Optional, Union

if TYPE_CHECKING:
from braket.pulse.pulse_sequence import PulseSequence

Check warning on line 23 in src/braket/pulse/waveforms.py

View check run for this annotation

Codecov / codecov/patch

src/braket/pulse/waveforms.py#L23

Added line #L23 was not covered by tests

import numpy as np
import openpulse.ast as ast
Expand Down

0 comments on commit b75bb74

Please sign in to comment.