-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for adding barriers and delays to Circuit
#974
Comments
An implementation of
Example usage of
which would output:
An implementation of |
@rmshaffer I would like to work on this issue |
@rmshaffer could you please look at PR #980. Is it okay to have a delay gate that supports delay in ns or do we want to support more units like dt? |
Reviewing now. To answer your question here, we should specify amazon-braket-sdk-python/src/braket/pulse/pulse_sequence.py Lines 166 to 181 in 1c46ca7
|
Closing this unitaryHACK issue, since the changes have been merged into a feature branch. Thank you @Manvi-Agrawal for your contribution! 🥳 PR #1002 has been opened to track the remaining changes to merge this feature to |
Describe the feature you'd like
Users should be able to add barriers and delays to
Circuit
objects using the same syntax as gates.Implementing barrier and delay instructions should involve minimal complexity. OpenQASM supports both the
barrier
anddelay
instructions at the program level, so we could simply add these instructions in global scope in the resulting OpenQASM program.For example, the code may look like:
which would output something like:
How would this feature be used? Please describe.
The
barrier
anddelay
instructions are useful when precise timing of quantum operations is needed within a program. One example is in #417, where the time of measurement needs to be determined precisely.Describe alternatives you've considered
Today, the Braket service supports
barrier
anddelay
as OpenPulse instructions, which is a workaround for achieving this functionality. For example, the program below contains abarrier
on qubits$0
and$1
inside acal
block:The text was updated successfully, but these errors were encountered: