Skip to content

Commit 9dfacf0

Browse files
committed
get rid of unnecessary assertion on measure lattice element length
1 parent 699730f commit 9dfacf0

File tree

1 file changed

+1
-3
lines changed
  • src/bloqade/gemini/analysis/measurement_validation

1 file changed

+1
-3
lines changed

src/bloqade/gemini/analysis/measurement_validation/impls.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ def terminal_measure(
6464

6565
# could make these proper exceptions but would be tricky to communicate to user
6666
# without revealing under-the-hood details
67-
measure_lattice_element = measurement_analysis_results.get_values(stmt.results)
68-
assert len(measure_lattice_element) == 1
69-
measure_lattice_element = measure_lattice_element[0]
67+
measure_lattice_element = measurement_analysis_results.get(stmt.result)
7068
assert isinstance(measure_lattice_element, MeasureIdTuple)
7169

7270
if len(measure_lattice_element.data) != total_qubits_allocated:

0 commit comments

Comments
 (0)