QVFitter¶
- class QVFitter(backend_result=None, statevector_result=None, qubit_lists=None)[source]¶
Class for fitters for quantum volume.
- Parameters
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)
Attributes
Return depth list.
Return the number of heavy output counts as measured.
Return the heavy output probability ideally.
Return the ideal heavy outputs dictionary.
Return depth list.
Return all the results.
Return the average and std of the output probability.
Methods
QVFitter.add_data
(new_backend_result[, …])Add a new result.
QVFitter.add_statevectors
(new_statevector_result)Add the ideal results and convert to the heavy outputs.
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.
QVFitter.plot_qv_data
([ax, show_plt])Plot the qv data as a function of depth
Return the volume for each depth.
Return whether each depth was successful (>2/3 with confidence greater than 97.5) and the confidence