Description Usage Arguments Details Value See Also
View source: R/sampling_simulations.R
XEB fidelity estimator based on normalized HOG score.
1 2 3 4 | hog_score_xeb_fidelity_from_probabilities(
hilbert_space_dimension,
probabilities
)
|
hilbert_space_dimension |
Dimension of the Hilbert space on which the channel whose fidelity is being estimated is defined. |
probabilities |
Ideal probabilities of bitstrings observed in experiment. Returns: Estimate of fidelity associated with an experimental realization of a quantum circuit. |
Estimates fidelity from ideal probabilities of observed bitstrings. See 'linear_xeb_fidelity_from_probabilities' for the assumptions made by this estimator. The mean of this estimator is the true fidelity f and the variance is (1/log(2)^2 - f^2) / M where f is the fidelity and M the number of observations, equal to len(probabilities). This is always worse than log XEB (see above). Since this estimator is unbiased, the variance is equal to the mean squared error of the estimator. The estimator is intended for use with xeb_fidelity() below. It is based on the HOG problem defined in https://arxiv.org/abs/1612.05903.
Estimate of fidelity associated with an experimental realization of a quantum circuit.
Other Sampling, Simulations and Data collection:
big_endian_bits_to_int()
,
big_endian_digits_to_int()
,
big_endian_int_to_bits()
,
big_endian_int_to_digits()
,
circuit_like()
,
final_density_matrix()
,
final_wavefunction()
,
flatten_to_ops_or_moments()
,
flatten_to_ops()
,
flatten_with_params()
,
flatten_with_sweep()
,
flatten()
,
measure_density_matrix()
,
measure_state_vector()
,
random_state_or_seed_like()
,
sample_density_matrix()
,
sample_state_vector()
,
sample_sweep()
,
sample()
,
to_resolvers()
,
to_sweep()
,
validate_mixture()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.