QVFitter¶
- class QVFitter(backend_result=None, statevector_result=None, qubit_lists=None)[Quellcode]¶
Bases:
object
Class for fitters for quantum volume.
- Parameter
backend_result (list) – list of results (qiskit.Result).
statevector_result (list) – the ideal statevectors of each circuit
qubit_lists (list) – list of qubit lists (what was passed to the circuit generation)
Methods
Add a new result.
Add the ideal results and convert to the heavy outputs.
Calculate confidence level using z value.
Make a count dictionary for each unique circuit from all the results.
Convert the heavy outputs in the different trials into mean and error for plotting.
Calculate z value using mean and sigma.
Plot individual and accumulative heavy output probability (HOP) as a function of number of trials.
Plot the qv data as a function of depth
Plot individual trial.
Return the volume for each depth.
Return whether each depth was successful (> 2/3 with confidence level > 0.977 corresponding to z_value = 2) and the confidence level.
Attributes
- depths¶
Return depth list.
- heavy_output_counts¶
Return the number of heavy output counts as measured.
- heavy_output_prob_ideal¶
Return the heavy output probability ideally.
- heavy_outputs¶
Return the ideal heavy outputs dictionary.
- qubit_lists¶
Return depth list.
- results¶
Return all the results.
- ydata¶
Return the average and std of the output probability.