Skip to content

Results are limited to Pulser v1.3.0

Product news
You are reading Pulser v1.3.0, an older version of this documentation. Go to the latest version (v1.10.0)

Results

class pulser.backend.Results(atom_order, total_duration)

Bases: object

A collection of results.

Parameters:
  • atom_order (tuple[str, ...]) – The order of the atoms/qudits in the results.

  • total_duration (int) – The total duration of the sequence, in ns.

Attributes

atom_order

total_duration

Methods

get_result

Get the a specific result at a given time.

get_result_tags

Get a list of results tags present in this object.

get_result_times

Get a list of times for which the given result has been stored.

get_tagged_results

Gets the results for every tag.

Signatures

get_result(observable, time)

Get the a specific result at a given time.

Parameters:
  • observable (Observable | str) – The observable instance used to calculate the result or its tag.

  • time (float) – Relative time at which to get the result.

Return type:

Any

Returns:

The result.

get_result_tags()

Get a list of results tags present in this object.

Return type:

list[str]

get_result_times(observable)

Get a list of times for which the given result has been stored.

Parameters:

observable (Observable | str) – The observable instance used to calculate the result or its tag.

Return type:

list[float]

Returns:

List of relative times.

get_tagged_results()

Gets the results for every tag.

Return type:

dict[str, list[Any]]

Returns:

A mapping between a tag and the results associated to it, at every evaluation time.