-
Notifications
You must be signed in to change notification settings - Fork 3
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
QGL2 programs cannot use parameters of qubits #37
Comments
Add to QGL2 codebase some helper QGL1 functions (say in As simple as def getPulseParam(q: qreg, param):
return q.pulse_params['param'] Or fancier & more use specific: def getPulseOfSpecificLength(pulse, q: qreg, desiredLength) -> pulse:
return pulse(q, length=desiredLength-q.pulse_params["length"]) |
See |
Per discussion today, using parameters of a qubit may be rare, such that it's OK if you have to do this in QGL1. So may not need to fix this; the workaround used above may be plenty. |
QGL2 treats a qubit as just a label. Any parameter of the qubit cannot be used in a QGL2 program. Specifically,
BasicSequences/BlankingSweeps
shows a QGL program that you cannot write in QGL2.Is this something we should support? If so, how? If not, do all such programs need to be written in QGL1 and given stubs for use in QGL2 programs?
The text was updated successfully, but these errors were encountered: