-
Notifications
You must be signed in to change notification settings - Fork 160
Generate json files for RB tests #444
Generate json files for RB tests #444
Conversation
@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? |
test/rb/generate_data.py
Outdated
|
||
def rb_circuit_execution(rb_opts: dict, shots: int): | ||
""" | ||
Create rb circuits with depolarizing error and simulates them |
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.
should be "simulate"
test/rb/generate_data.py
Outdated
|
||
def rb_circuit_execution_2(rb_opts: dict, shots: int): | ||
""" | ||
Create rb circuits with T1 and T2 errors and simulates them |
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.
should be "simulate"
test/rb/generate_data.py
Outdated
|
||
def rb_interleaved_execution(rb_opts: dict, shots: int): | ||
""" | ||
Create interleaved rb circuits with depolarizing error and simulates them |
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.
should be "simulate"
test/rb/generate_data.py
Outdated
|
||
def rb_cnotdihedral_execution(rb_opts: dict, shots: int): | ||
""" | ||
Create cnot-dihedral rb circuits with depolarizing errors and simulates them |
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.
should be "simulate"
test/rb/generate_data.py
Outdated
|
||
def rb_purity_circuit_execution(rb_opts: dict, shots: int): | ||
""" | ||
Create purity rb circuits with depolarizing errors and simulates them |
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.
should be simulate
test/rb/generate_data.py
Outdated
|
||
rb_circs, xdata = rb.randomized_benchmarking_seq(**rb_opts) | ||
|
||
noise_model = NoiseModel() |
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.
This code (lines 49-50, 54-59) seem to be duplicated in most of the generation functions - maybe it's better to define it in one function and call it once?
noise_model=noise_model, | ||
seed_simulator=SEED).result()) | ||
# coherent purity results | ||
coherent_results.append(qiskit.execute(current_circ, backend=backend, |
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.
I don't think that we actually check the coherent error fitter, since it's too noisy, but maybe it's good to keep it as a reference.
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.
Looks good Dekel!
Summary
Added code to generate json files used in the RB fitters tests
Details and comments
Split from #398 in order to separate data generation of different functionalities
the generation of RB json files depends on #407
Hence the code in this PR should be revised after #407 is merged.