# QVFitter¶

class QVFitter(backend_result=None, statevector_result=None, qubit_lists=None)[ソース]

ベースクラス: object

Class for fitters for quantum volume.

パラメータ
• 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_data Add a new result. add_statevectors Add the ideal results and convert to the heavy outputs. calc_confidence_level Calculate confidence level using z value. calc_data Make a count dictionary for each unique circuit from all the results. calc_statistics Convert the heavy outputs in the different trials into mean and error for plotting. calc_z_value Calculate z value using mean and sigma. plot_hop_accumulative Plot individual and accumulative heavy output probability (HOP) as a function of number of trials. plot_qv_data Plot the qv data as a function of depth plot_qv_trial Plot individual trial. quantum_volume Return the volume for each depth. qv_success 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.