Skip to content

Commit

Permalink
Merge pull request #22 from QuEraComputing/update-rerun-scar-example
Browse files Browse the repository at this point in the history
Update rerun scar example
  • Loading branch information
weinbe58 authored Oct 5, 2023
2 parents 7a93463 + 9ed5b4b commit ab3bbf3
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 94 deletions.
1 change: 1 addition & 0 deletions data/old/quantum-scar-dynamics-job.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data/quantum-scar-dynamics-job.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/docs/examples/example-4-quantum-scar-dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@
.amplitude.uniform.piecewise_linear([0.3, 1.6, 0.3], [0.0, 15.7, 15.7, 0.0])
.piecewise_linear([0.2, 1.4, 0.2], [0, 15.7, 15.7, 0])
# slice waveform, add padding for the linear segment
.slice(start=0, stop=run_time - 0.06)
.slice(start=0, stop=run_time - 0.065)
# record the value of the waveform at the end of the slice to "rabi_value"
.record("rabi_value")
# append segment to waveform that fixes the value of the waveform to 0
# at the end of the waveform
.linear("rabi_value", 0, 0.06)
.linear("rabi_value", 0, 0.065)
)

# get run times via the following:
Expand Down
Loading

0 comments on commit ab3bbf3

Please sign in to comment.