oqpy icon indicating copy to clipboard operation
oqpy copied to clipboard

OpenQASM 3 + OpenPulse in Python

Results 13 oqpy issues
Sort by recently updated
recently updated
newest added

Update - urllib3 to 2.10 - cryptography to 4.0.7 - jinja2 to 3.1.3

If an `ExpressionConvertible` returns a float, int or a duration, this can still be converted to a duration.

Draft PR to demonstrate typing fix that removes IDE warning (`Expected type 'collections.Iterable', got 'Range' instead`) for autoqasm syntax `for _ in aq.range(n)` (where `aq.range(n)` gives an oqpy `Range` object)....

Implementation of the case where None is supplied as input argument, which adds a delay or a barrier on all frames. This becomes the new default behavior Closes #15

Creates an OQpy program from a valid OpenQASM3 string.

#48 Surfaced 2 remaining issues where the AST we produce is not consistent with the openqasm3 AST type hints. 1. Pragmas are not statements, I think to keep them from...

For instance, we shouldn't accept "delay" as a valid variable name, since it is a keyword.

Barrier and delay should take None as argument (which should be the default behavior): `.barrier()` -> `barrier;`, i.e places a barrier on all frames `.barrier([])` -> does NOT insert an...

`Program._add_var` gets invoked often, and `expr_matches` is relatively expensive. We should consider alternatives.

Check arguments types of `Program`'s member functions. Currently set_phase(frame=x, phase=frame) is allowed, which would submit a program including the OQ instruction and the corresponding AST node: set_phase(x, frame)