Skip to content

Commit

Permalink
fix: batch tasking passing lists to single tasks (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeCoull authored Mar 21, 2024
1 parent 4e9ae75 commit 314bf59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/braket/aws/aws_quantum_task_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _tasks_inputs_gatedefs(
batch_length = arg_length

for i, arg_length in enumerate(arg_lengths):
if arg_length == 1:
if isinstance(args[i], (dict, single_task_type)):
args[i] = repeat(args[i], batch_length)

tasks_inputs_definitions = list(zip(*args))
Expand Down

0 comments on commit 314bf59

Please sign in to comment.