-
Notifications
You must be signed in to change notification settings - Fork 160
Generate json files for QV tests #445
Generate json files for QV tests #445
Conversation
test/quantum_volume/generate_data.py
Outdated
|
||
def qv_circuit_execution(qubit_lists: list, ntrials: int, shots: int): | ||
""" | ||
create quantum volume circuits, simulates the ideal state and run a noisy simulation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simulate, not simulates
test/quantum_volume/generate_data.py
Outdated
|
||
def generate_qv_fitter_data(ideal_results_file_path: str, exp_results_file_path: str): | ||
""" | ||
run the quantum volume circuits and saves the results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
save, not saves
The code looks good! |
There is a build failure in one of the tests - it's not related to this PR. |
when I generate the json files I do not get exactly the same files as in |
Are the results close to the original json files? |
Thanks @dekelmeirom ! |
in the quantum volume circuits creation, there is a random permutation of the gates which don't have an option to have a constant seed, so each run the results are a bit different (but their structure is the same as the results in https://github.com/Qiskit/qiskit-ignis/tree/master/test/quantum_volume) |
We should refactor the quantum volume circuit generation to use the |
Should this be a part of this PR? or is this PR depend on a refactor of the QV code in ignis? |
I think we should do that as a separate PR |
There is an open issue about this: #395 |
@dekool I can't merge or update this Pr as its out-of-date with the base branch, and you fix rebase/merge from master to fix this? |
07f0f18
to
ba2cb52
Compare
Summary
Added code to generate json files used in the quantum volume tests
Details and comments
Split from #398 in order to separate data generation of different functionalities