Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit early when circuit type is not supported #2252

Merged
merged 2 commits into from
Mar 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions mitiq/calibration/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from mitiq.benchmarks import (
generate_ghz_circuit,
generate_mirror_circuit,
generate_quantum_volume_circuit,
generate_rb_circuits,
generate_w_circuit,
)
Expand Down Expand Up @@ -347,11 +346,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
Loading