This project is mirrored from https://github.com/ornl-qci/qcor.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Last successful update .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Last successful update .
- 16 Jun, 2021 1 commit
-
-
Nguyen, Thien Minh authored
also, add the test for bit reverse in qjit kernel Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 15 Jun, 2021 1 commit
-
-
Nguyen, Thien Minh authored
Add `while` token and handler for the while Python statement Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 14 Jun, 2021 1 commit
-
-
Nguyen, Thien Minh authored
This uncovers a bug: the pyxasm visitor needs to track the loop variable as well. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 18 May, 2021 1 commit
-
-
https://github.com/ORNL-QCI/qcor/issues/143Nguyen, Thien Minh authored
Check list of kernels in translation unit to add parent_kernel argument in addition to qreg type checking. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 15 Apr, 2021 1 commit
-
-
Nguyen, Thien Minh authored
This turns out to be quite simple since we know all the local variables (including those from kernel arguments). Hence, using that to choose b/w '.' and '::'. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 14 Apr, 2021 1 commit
-
-
Nguyen, Thien Minh authored
- QJIT needs a more robust function signature parsing: in addition to commas, it needs to recognize template argument type, like Type<a,b,c> - Python args_dict construction to act for invocation (__call__) as well as other helper methods. - Comment out debug logging Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 12 Apr, 2021 5 commits
-
-
Nguyen, Thien Minh authored
Also, add a test for grover Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
Nguyen, Thien Minh authored
This allows passing a qreg slice directly to broadcast instructions. Refactor the PyXASM token collector impl. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
Nguyen, Thien Minh authored
Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
Nguyen, Thien Minh authored
Also, support rewriting Python range-based slicing => extract_range() Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
Nguyen, Thien Minh authored
Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 09 Apr, 2021 1 commit
-
-
Nguyen, Thien Minh authored
Handle Python list/array (testlist_comp) node: map [] to {} Related to https://github.com/ORNL-QCI/qcor/issues/112 Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 08 Apr, 2021 1 commit
-
-
Mccaskey, Alex authored
Signed-off-by:
Alex McCaskey <mccaskeyaj@ornl.gov>
-
- 05 Apr, 2021 1 commit
-
-
Nguyen, Thien Minh authored
To test the functionality at runtime. Also, add ability to define a local array-like variable in Python. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 17 Nov, 2020 1 commit
-
-
Mccaskey, Alex authored
Signed-off-by:
Alex McCaskey <mccaskeyaj@ornl.gov>
-
- 16 Nov, 2020 1 commit
-
-
Mccaskey, Alex authored
Signed-off-by:
Alex McCaskey <mccaskeyaj@ornl.gov>
-
- 11 Nov, 2020 1 commit
-
-
Mccaskey, Alex authored
Signed-off-by:
Alex McCaskey <mccaskeyaj@ornl.gov>
-
- 06 Nov, 2020 1 commit
-
-
Nguyen, Thien Minh authored
Unlike C++, in Python, we need to know which variables have been declared in the function scope (including func. args) so that we can add *auto * when seeing assigment expressions. Hence, the syntax handler will cache the map of kernel signatures. Just reuse the appendKernel util to cache kernel signature along the kernel name. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 05 Nov, 2020 1 commit
-
-
Nguyen, Thien Minh authored
We don't want to add 'auto' in a reassignment case. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 04 Nov, 2020 1 commit
-
-
Nguyen, Thien Minh authored
Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 03 Nov, 2020 6 commits
-
-
Nguyen, Thien Minh authored
Also, apply Python constant rewrite and Measure result access to all classical context: If conditions and assigments. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
Nguyen, Thien Minh authored
Looking into ways to parse else blocks since it looks like the Python syntax expect to see the whole if-else block in one pass rather than line by line. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
Nguyen, Thien Minh authored
Hook codegen for If statements. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
Nguyen, Thien Minh authored
iqft is a valid XACC circuit hence caused problems in the pyxasm_visitor. Hence, fixed accordingly. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
Nguyen, Thien Minh authored
For some reason, get_provider() impl was not found (linker errors b/c adjoint() used it to construct IR), hence added accordingly. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
Mccaskey, Alex authored
Signed-off-by:
Alex McCaskey <mccaskeyaj@ornl.gov>
-
- 02 Nov, 2020 1 commit
-
-
Mccaskey, Alex authored
started on supporting python qjit kernel ctrl, adjoint, etc. implement 2**x in pyxasm visitor, added qft example to tests Signed-off-by:
Alex McCaskey <mccaskeyaj@ornl.gov>
-
- 30 Oct, 2020 1 commit
-
-
Nguyen, Thien Minh authored
Rewrite Python for loops into C++ range-based for loops. Hence, we can loop directly on python arrays, e.g. list of Pauli terms. Add C++ range() and len() impl in QCOR utils. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 29 Oct, 2020 4 commits
-
-
Nguyen, Thien Minh authored
- Make sure that the callable is a quantum kernel call (first arg is a qreg) in the pyxasm visitor. - Prevent redefinition errors. - Add tests for nested JIT kernels. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
Nguyen, Thien Minh authored
Kernel dependency is injected to the generated source before JIT compilation. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
Nguyen, Thien Minh authored
Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
Nguyen, Thien Minh authored
The Python side will make sure all module aliasing resolved. The C++ will then map them to C++ constants. Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 28 Oct, 2020 1 commit
-
-
Nguyen, Thien Minh authored
Signed-off-by:
Thien Nguyen <nguyentm@ornl.gov>
-
- 23 Oct, 2020 1 commit
-
-
Mccaskey, Alex authored
Signed-off-by:
Alex McCaskey <mccaskeyaj@ornl.gov>
-