Skip to content

Commit

Permalink
Update Run.ml
Browse files Browse the repository at this point in the history
  • Loading branch information
khieta authored Jul 26, 2022
1 parent 25cfe67 commit deb7da5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/shor/extraction/ml/Run.ml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ let run_circuit n c _ =
(* simulate circuit using run_circuit.py *)
let _ = printf "Simulating circuit, this will take a little while...\n%!" in
let start = Unix.gettimeofday () in
let inc = Unix.open_process_in "python3.9 run_circuit.py shor.qasm" in
let inc = Unix.open_process_in "python run_circuit.py shor.qasm" in
(* read measurement outcome from console *)
try
let line = input_line inc in
Expand All @@ -56,4 +56,4 @@ let run_circuit n c _ =
x)
with _ ->
(close_in_noerr inc;
failwith "ERROR: circuit simulation failed.\n")
failwith "ERROR: circuit simulation failed.\n")

0 comments on commit deb7da5

Please sign in to comment.