Skip to content

Commit

Permalink
Apply small style changes
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Burgholzer <[email protected]>
  • Loading branch information
ColoredCarrot and burgholzer authored Apr 20, 2024
1 parent e258703 commit 7aceaab
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/mqt/bench/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ def main() -> None:
parser.add_argument("--device", type=str, help="Name of the device")
args = parser.parse_args()

qiskit_settings: QiskitSettings | None = None
qiskit_settings = QiskitSettings()
if args.qiskit_optimization_level is not None:
qiskit_settings = QiskitSettings(args.qiskit_optimization_level)

tket_settings: TKETSettings | None = None
tket_settings = TKETSettings()
if args.tket_placement is not None:
tket_settings = TKETSettings(args.tket_placement)

Expand All @@ -58,11 +58,7 @@ def main() -> None:
)

if isinstance(result, QuantumCircuit):
qasm_str = qiskit_circuit_to_str(result)
elif isinstance(result, Circuit):
qasm_str = circuit_to_qasm_str(result)
else:
msg = f"Got unknown circuit type from get_benchmark: {type(result)}"
raise TypeError(msg)

print(qasm_str)
print(qiskit_circuit_to_str(result))
return

print(circuit_to_qasm_str(result))

0 comments on commit 7aceaab

Please sign in to comment.