SRI-International / QC-App-Oriented-Benchmarks

QED-C: The Quantum Economic Development Consortium provides these computer programs and software for use in the fields of quantum science and engineering.
Apache License 2.0
140 stars 80 forks source link

not getting fidelity for amplitude-estimation/cirq/ae_benchmark.py and monte-carlo/cirq/mc_benchmark.py #493

Open GIRISHBELANI opened 4 months ago

GIRISHBELANI commented 4 months ago

after executing the benchmark files ae_benchmark.py and mc_benchmark.py for cirq, the fidelity values are getting equals to 0.

Suggestion: add below line after calculation of correct_dist

convert the keys of the correct_dist dictionary into strings

correct_dist = {str(key): value for key, value in correct_dist.items()}