Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidedellagiustina committed Feb 8, 2024
1 parent 3708400 commit e7451d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qasp/problems/amplification.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def exec_find_one_known_m(
while True:
iters += 1
result = exec_circuit(circ, shots=1)
measurements = list(result.get_counts(circ).keys())[0]
measurements = list(result.get_counts().keys())[0]
model = __measure_to_model(measurements, var_names)
if c_oracle(model):
break
Expand Down Expand Up @@ -269,7 +269,7 @@ def exec_find_one_unknown_m(

# Step 3
result = exec_circuit(circ_noiter, shots=1)
measurements = list(result.get_counts(circ_noiter).keys())[0]
measurements = list(result.get_counts().keys())[0]
model = __measure_to_model(measurements, var_names)
if c_oracle(model):
break
Expand All @@ -280,7 +280,7 @@ def exec_find_one_unknown_m(
copy.deepcopy(q_oracle), j, inc, aux_qubits)
circs.append(circ)
result = exec_circuit(circ, shots=1)
measurements = list(result.get_counts(circ).keys())[0]
measurements = list(result.get_counts().keys())[0]
model = __measure_to_model(measurements, var_names)
if c_oracle(model):
break
Expand Down

0 comments on commit e7451d0

Please sign in to comment.