Skip to content

Commit

Permalink
Attempt at fixing qsharp - removed the reload call.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfleury-sb committed Feb 23, 2024
1 parent 0068302 commit dfafe0b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tangelo/linq/target/target_qdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def simulate_circuit(self, source_circuit: Circuit, return_statevector=False, in
key_length = n_meas + source_circuit.width if save_mid_circuit_meas else source_circuit.width
# Compile, import and call Q# operation to compute frequencies. Only import qsharp module if qdk is running
# TODO: A try block to catch an exception at compile time, for Q#? Probably as an ImportError.
self.qsharp.reload()
from MyNamespace import EstimateFrequencies
frequencies_list = EstimateFrequencies.simulate(nQubits=key_length, nShots=self.n_shots)
print("Q# frequency estimation with {0} shots: \n {1}".format(self.n_shots, frequencies_list))
Expand Down

0 comments on commit dfafe0b

Please sign in to comment.