# dwave.system.temperatures.fast_effective_temperature¶

fast_effective_temperature(sampler=None, num_reads=None, seed=None, h_range=(- 0.1639344262295082, 0.1639344262295082), sampler_params=None, optimize_method=None, num_bootstrap_samples=0) Tuple[numpy.float64, numpy.float64][source]

Provides an estimate to the effective temperature, $$T$$, of a sampler.

This function submits a set of single-qubit problems to a sampler and uses the rate of excitations to infer a maximum-likelihood estimate of temperature.

Parameters
• sampler (dimod.Sampler, optional, default=DWaveSampler) – A dimod sampler.

• num_reads (int, optional) – Number of reads to use. Default is 100 if not specified in sampler_params.

• seed (int, optional) – Seeds the problem generation process. Allowing reproducibility from pseudo-random samplers.

• h_range (float, optional, default = [-1/6.1,1/6.1]) – Determines the range of external fields probed for temperature inference. Default is based on a D-Wave Advantage processor, where single-qubit freeze-out implies an effective temperature of 6.1 (see freezeout_effective_temperature). The range should be chosen inversely proportional to the anticipated temperature for statistical efficiency, and to accomodate precision and other nonidealities such as precision limitations.

• sampler_params (dict, optional) – Any additional non-defaulted sampler parameterization. If num_reads is a key, must be compatible with num_reads argument.

• optimize_method (str, optional) – Optimize method used by SciPy root_scalar method. The default method works well under default operation, ‘bisect’ can be numerically more stable when operated without defaults.

• num_bootstrap_samples (int, optional, default=0) – Number of bootstrap samples to use for estimation of the standard error. By default no bootstrapping is performed and the standard error is defaulted to 0.

Returns

The effective temperature describing single qubit problems in an external field, and a standard error (+/- 1 sigma). By default the confidence interval is set as 0.

Return type

Tuple[float, float]

Examples

Draw samples from a DWaveSampler, and establish the temperature

>>> from dwave.system.temperatures import fast_effective_temperature
>>> from dwave.system import DWaveSampler
>>> sampler = DWaveSampler()
>>> T, _ = fast_effective_temperature(sampler)
>>> print('Effective temperature at freeze-out is',T)
0.21685104745347336


The function freezeout_effective_temperature may be used in combination with published device values to estimate single-qubit freeze-out, in approximate agreement with empirical estimates of this function.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 1, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.4662564694881439, "perplexity": 9541.588031777332}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-49/segments/1669446708010.98/warc/CC-MAIN-20221126144448-20221126174448-00216.warc.gz"}