Skip to content

Commit

Permalink
Removed the measure gate as a special case gate when converting a sqa…
Browse files Browse the repository at this point in the history
… to a dqa
  • Loading branch information
Arianne Meijer committed Dec 12, 2024
1 parent 8fadfca commit bf46609
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/iqm/qiskit_iqm/iqm_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ def _dqa_from_static_architecture(sqa: QuantumArchitectureSpecification) -> Dyna
)
for gate_name, gate_loci in sqa.operations.items()
}
gates['measure'] = GateInfo(
implementations={'__fake': GateImplementationInfo(loci=tuple(tuple([locus]) for locus in qubits))},
default_implementation='__fake',
override_default_implementation={},
)
return DynamicQuantumArchitecture(
calibration_set_id=UUID('00000000-0000-0000-0000-000000000000'),
qubits=qubits,
Expand Down
11 changes: 10 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ def reset_mocks_after_tests():
def linear_3q_architecture_static():
return QuantumArchitectureSpecification(
name='3q_line',
operations={'prx': [['QB1'], ['QB2'], ['QB3']], 'cz': [['QB1', 'QB2'], ['QB2', 'QB3']]},
operations={
'prx': [['QB1'], ['QB2'], ['QB3']],
'cz': [['QB1', 'QB2'], ['QB2', 'QB3']],
'measure': [['QB1'], ['QB2'], ['QB3']],
},
qubits=['QB1', 'QB2', 'QB3'],
qubit_connectivity=[['QB1', 'QB2'], ['QB2', 'QB3']],
)
Expand All @@ -58,6 +62,11 @@ def linear_3q_architecture():
default_implementation='tgss',
override_default_implementation={},
),
'measure': GateInfo(
implementations={'constant': GateImplementationInfo(loci=(('QB1',), ('QB2',), ('QB3',)))},
default_implementation='constant',
override_default_implementation={},
),
},
)

Expand Down

0 comments on commit bf46609

Please sign in to comment.