Skip to content
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

Behaviour of DELAY statement is inconsistent with documentation #1372

Open
bramathon opened this issue Aug 16, 2021 · 0 comments
Open

Behaviour of DELAY statement is inconsistent with documentation #1372

bramathon opened this issue Aug 16, 2021 · 0 comments
Labels
bug 🐛 An issue that needs fixing.

Comments

@bramathon
Copy link
Contributor

bramathon commented Aug 16, 2021

Pre-Report Checklist

pyquil 3.0.0

Issue Description

In the documentation, the syntax for DELAY statements is as follows:

DELAY q0 q1 ... delay_in_s

https://pyquil-docs.rigetti.com/en/stable/apidocs/pyquil.gates.html#pyquil.gates.DELAY

It is also possible to delay all frames on some qubits, e.g. DELAY 0 1 2 1.0

or

PRAGMA q0 q1 "delay_in_s"

https://pyquil-docs.rigetti.com/en/stable/basics.html#asking-for-a-delay

However, the behaviour seems to follow the quilT specification:

https://github.com/quil-lang/quil/blob/master/rfcs/analog/proposal.md#delay

which doesn't apply the delay to q0 and q1, but only to instructions which include both q0 and q1.

Suggested fix

The documentation should be updated to make this more clear:

eg. Delay single-qubit gates on qubit 5 for 50ns

DELAY 5 50.0e-9

eg. Delay two-qubits gates on qubit 4/5 for 50ns

DELAY 4 5 50.0e-9

eg. Delay all gates on qubit 4/5 for 50ns

DELAY 4 50.0e-9
DELAY 5 50.0e-9
FENCE 4 5
@bramathon bramathon added the bug 🐛 An issue that needs fixing. label Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue that needs fixing.
Projects
None yet
Development

No branches or pull requests

1 participant