Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Agony5757 committed Sep 27, 2023
1 parent 9b5e986 commit a7e9926
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions qpandalite/simulator/originir_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def simulate(self,
if len(qubit) > 2: raise ValueError('Real chip does not support 3-qubit gate or more. '
'The dummy server does not support either. '
'You should consider decomposite it.')
if ([qubit[0], qubit[1]] not in available_topology) and \
([qubit[1], qubit[0]] not in available_topology):
if ([int(qubit[0]), int(qubit[1])] not in available_topology) and \
([int(qubit[1]), int(qubit[0])] not in available_topology):
raise ValueError(f'Unsupported topology in line {i} ({line}).')

self.simulate_gate(operation, qubit, cbit, parameter)
Expand Down
5 changes: 4 additions & 1 deletion qpandalite/task/originq_dummy/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ def _submit_task_group(
# recursively call, and return a list of taskid
return [_submit_task_group(group,
'{}_{}'.format(task_name, i),
shots, savepath, dummy_path) for i, group in enumerate(groups)]
shots,
auto_mapping,
savepath,
dummy_path) for i, group in enumerate(groups)]

# generate taskid
taskid = _random_taskid()
Expand Down

0 comments on commit a7e9926

Please sign in to comment.