Skip to content

Commit

Permalink
pass inputs with PulseSequence
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjaskula-aws committed Dec 19, 2023
1 parent 1bc972b commit ab492d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/braket/aws/aws_quantum_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,12 @@ def _(
*args,
**kwargs,
) -> AwsQuantumTask:
create_task_kwargs.update({"action": OpenQASMProgram(source=pulse_sequence.to_ir()).json()})
openqasm_program = OpenQASMProgram(
source=pulse_sequence.to_ir(),
inputs=inputs if inputs else None,
)

create_task_kwargs.update({"action": openqasm_program.json()})
task_arn = aws_session.create_quantum_task(**create_task_kwargs)
return AwsQuantumTask(task_arn, aws_session, *args, **kwargs)

Expand Down

0 comments on commit ab492d9

Please sign in to comment.