diff --git a/docs/examples/example-2-nonequilibrium-dynamics-blockade-radius.py b/docs/examples/example-2-nonequilibrium-dynamics-blockade-radius.py index 48b6e6e..09b8fda 100644 --- a/docs/examples/example-2-nonequilibrium-dynamics-blockade-radius.py +++ b/docs/examples/example-2-nonequilibrium-dynamics-blockade-radius.py @@ -132,7 +132,7 @@ def rydberg_state_probabilities(shot_counts): emu_batch = load(emu_filename) emu_report = emu_batch.report() -emu_counts = emu_report.counts +emu_counts = emu_report.counts() hardware_batch = load(filename) # hardware_batch.fetch() # uncomment to fetch results from Braket @@ -150,8 +150,8 @@ def rydberg_state_probabilities(shot_counts): hardware_report = hardware_batch.report() -emu_rydberg_state_probabilities = rydberg_state_probabilities(emu_report.counts) -hw_rydberg_state_probabilities = rydberg_state_probabilities(hardware_report.counts) +emu_rydberg_state_probabilities = rydberg_state_probabilities(emu_report.counts()) +hw_rydberg_state_probabilities = rydberg_state_probabilities(hardware_report.counts()) # %% [markdown] # plot 0, 1, and 2 Rydberg state probabilities but in separate plots diff --git a/docs/examples/example-2-two-qubit-adiabatic.py b/docs/examples/example-2-two-qubit-adiabatic.py index c3fbe61..f910ea7 100644 --- a/docs/examples/example-2-two-qubit-adiabatic.py +++ b/docs/examples/example-2-two-qubit-adiabatic.py @@ -180,8 +180,8 @@ def rydberg_state_probabilities(emu_counts): emu_report = emu_batch.report() hardware_report = hardware_batch.report() -emu_rydberg_state_probabilities = rydberg_state_probabilities(emu_report.counts) -hw_rydberg_state_probabilities = rydberg_state_probabilities(hardware_report.counts) +emu_rydberg_state_probabilities = rydberg_state_probabilities(emu_report.counts()) +hw_rydberg_state_probabilities = rydberg_state_probabilities(hardware_report.counts()) emu_distances = emu_report.list_param("atom_distance") hw_distances = hardware_report.list_param("atom_distance") diff --git a/docs/examples/example-3-time-sweep.py b/docs/examples/example-3-time-sweep.py index 6653ea7..e29afcc 100644 --- a/docs/examples/example-3-time-sweep.py +++ b/docs/examples/example-3-time-sweep.py @@ -129,7 +129,7 @@ def get_z2_probabilities(report): z2_probabilities = [] - for count in report.counts: + for count in report.counts(): z2_probability = count["01010101010"] / sum(list(count.values())) z2_probabilities.append(z2_probability) diff --git a/docs/examples/example-4-quantum-scar-dynamics.py b/docs/examples/example-4-quantum-scar-dynamics.py index c2895de..4de1de2 100644 --- a/docs/examples/example-4-quantum-scar-dynamics.py +++ b/docs/examples/example-4-quantum-scar-dynamics.py @@ -148,7 +148,7 @@ def get_z2_probabilities(report): z2_probabilities = [] - for count in report.counts: + for count in report.counts(): z2_probability = count.get("01010101010", 0) / sum(list(count.values())) z2_probabilities.append(z2_probability)