Skip to content

Commit

Permalink
Exit early when circuit type is not supported (#2252)
Browse files Browse the repository at this point in the history
* Exit early when circuit type is not supported

* Remove unused import
  • Loading branch information
cosenal authored Mar 29, 2024
1 parent b5c7dc1 commit 246f2e6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mitiq/calibration/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from mitiq.benchmarks import (
generate_ghz_circuit,
generate_mirror_circuit,
generate_quantum_volume_circuit,
generate_rb_circuits,
generate_rotated_rb_circuits,
generate_w_circuit,
Expand Down Expand Up @@ -363,11 +362,9 @@ def make_problems(self) -> List[BenchmarkProblem]:
ideal_bitstring = "".join(map(str, bitstring_list))
ideal = {ideal_bitstring: 1.0}
elif circuit_type == "qv":
circuit, _ = generate_quantum_volume_circuit(num_qubits, depth)
raise NotImplementedError(
"quantum volume circuits not yet supported in calibration"
)

else:
raise ValueError(
"invalid value passed for `circuit_types`. Must be "
Expand Down

0 comments on commit 246f2e6

Please sign in to comment.