-
Notifications
You must be signed in to change notification settings - Fork 14
Function & cast related implementation #75
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
Open
Doomsk
wants to merge
45
commits into
dev/python
Choose a base branch
from
dev/python_impl/fn_impl
base: dev/python
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* new start to match main and this branch Signed-off-by: Doomsk <[email protected]> * add more documentation Signed-off-by: Doomsk <[email protected]> * add more documentation Signed-off-by: Doomsk <[email protected]> * fix mkdocs ci Signed-off-by: Doomsk <[email protected]> * add more doc pages Signed-off-by: Doomsk <[email protected]> * add TODOs, docs introductions, mike versioning, codes fix here and there Signed-off-by: Doomsk <[email protected]> * add more docs Signed-off-by: Doomsk <[email protected]> * fix small typo Signed-off-by: Doomsk <[email protected]> --------- Signed-off-by: Doomsk <[email protected]>
* new start to match main and this branch Signed-off-by: Doomsk <[email protected]> * add more documentation Signed-off-by: Doomsk <[email protected]> * add more documentation Signed-off-by: Doomsk <[email protected]> * fix mkdocs ci Signed-off-by: Doomsk <[email protected]> * add more doc pages Signed-off-by: Doomsk <[email protected]> * add TODOs, docs introductions, mike versioning, codes fix here and there Signed-off-by: Doomsk <[email protected]> * add more docs Signed-off-by: Doomsk <[email protected]> * fix small typo Signed-off-by: Doomsk <[email protected]> * add docs build from main branch Signed-off-by: Doomsk <[email protected]> --------- Signed-off-by: Doomsk <[email protected]>
* new start to match main and this branch Signed-off-by: Doomsk <[email protected]> * add more documentation Signed-off-by: Doomsk <[email protected]> * add more documentation Signed-off-by: Doomsk <[email protected]> * fix mkdocs ci Signed-off-by: Doomsk <[email protected]> * add more doc pages Signed-off-by: Doomsk <[email protected]> * add TODOs, docs introductions, mike versioning, codes fix here and there Signed-off-by: Doomsk <[email protected]> * add more docs Signed-off-by: Doomsk <[email protected]> * fix small typo Signed-off-by: Doomsk <[email protected]> * add docs build from main branch Signed-off-by: Doomsk <[email protected]> * add more docs descriptions, pre-commit config improve heap memory logic and Heather dialect grammar (in progress) Signed-off-by: Doomsk <[email protected]> --------- Signed-off-by: Doomsk <[email protected]>
* new start to match main and this branch Signed-off-by: Doomsk <[email protected]> * add more documentation Signed-off-by: Doomsk <[email protected]> * add more documentation Signed-off-by: Doomsk <[email protected]> * fix mkdocs ci Signed-off-by: Doomsk <[email protected]> * add more doc pages Signed-off-by: Doomsk <[email protected]> * add TODOs, docs introductions, mike versioning, codes fix here and there Signed-off-by: Doomsk <[email protected]> * add more docs Signed-off-by: Doomsk <[email protected]> * fix small typo Signed-off-by: Doomsk <[email protected]> * add docs build from main branch Signed-off-by: Doomsk <[email protected]> * add more docs descriptions, pre-commit config improve heap memory logic and Heather dialect grammar (in progress) Signed-off-by: Doomsk <[email protected]> * add instructions docs improve docs overall Signed-off-by: Doomsk <[email protected]> --------- Signed-off-by: Doomsk <[email protected]>
* add fresh new structure * add memblock and tests Signed-off-by: Doomsk <[email protected]> * add more code Signed-off-by: Doomsk <[email protected]> * improve memory block logic and structure Signed-off-by: Doomsk <[email protected]> * improve test Signed-off-by: Doomsk <[email protected]> * include data and type container Signed-off-by: Doomsk <[email protected]> * include data and type container Signed-off-by: Doomsk <[email protected]> * new start to match main and this branch Signed-off-by: Doomsk <[email protected]> * add more documentation Signed-off-by: Doomsk <[email protected]> * add more documentation Signed-off-by: Doomsk <[email protected]> * fix mkdocs ci Signed-off-by: Doomsk <[email protected]> * add more doc pages Signed-off-by: Doomsk <[email protected]> * add TODOs, docs introductions, mike versioning, codes fix here and there Signed-off-by: Doomsk <[email protected]> * add more docs Signed-off-by: Doomsk <[email protected]> * fix small typo Signed-off-by: Doomsk <[email protected]> * add docs build from main branch Signed-off-by: Doomsk <[email protected]> * add more docs descriptions, pre-commit config improve heap memory logic and Heather dialect grammar (in progress) Signed-off-by: Doomsk <[email protected]> * add instructions docs improve docs overall Signed-off-by: Doomsk <[email protected]> * add logo and favicon Signed-off-by: Doomsk <[email protected]> * restart some rust codebase Signed-off-by: Doomsk <[email protected]> * restart some rust codebase Signed-off-by: Doomsk <[email protected]> * fix pre-commit Signed-off-by: Doomsk <[email protected]> * add github actions workflows for lint and tests Signed-off-by: Doomsk <[email protected]> * fix pre-commit and pytest Signed-off-by: Doomsk <[email protected]> * fix pre-commit and pytest Signed-off-by: Doomsk <[email protected]> * fix pre-commit location Signed-off-by: Doomsk <[email protected]> * remove netqasm for now Signed-off-by: Doomsk <[email protected]> * fix pre-commit and pytest actions Signed-off-by: Doomsk <[email protected]> * fix pre-commit action Signed-off-by: Doomsk <[email protected]> * fix pytest action Signed-off-by: Doomsk <[email protected]> * fix pytest action Signed-off-by: Doomsk <[email protected]> * fix working directory for github actions Signed-off-by: Doomsk <[email protected]> * add qiskit-aer dependency Signed-off-by: Doomsk <[email protected]> --------- Signed-off-by: Doomsk <[email protected]>
Signed-off-by: Doomsk <[email protected]> * fix ast code add Heather AST parsing visitor Signed-off-by: Doomsk <[email protected]> * small fix Signed-off-by: Doomsk <[email protected]> * small fix Signed-off-by: Doomsk <[email protected]> --------- Signed-off-by: Doomsk <[email protected]>
Signed-off-by: Doomsk <[email protected]>
* Add QNez instruction and update LowLeveQLang for OpenQASM v2.0 support * reformat for pre-commit * fix mypy exit error * Add QInstrFlag to manage instruction behavior and update QNez for argument generation * Add skip_gen flag to conditionally generate arguments in gen_instrs method * QNez: Update boolean handling for mask values in instruction processing * Update argument in test for QNez instruction from '@redim' to '@Not'
Signed-off-by: Doomsk <[email protected]>
Signed-off-by: Doomsk <[email protected]>
# Conflicts: # python/src/hhat_lang/low_level/quantum_lang/openqasm/v2/qlang.py # python/tests/lowlevel/qlang/openqasm/v2/test_lowlevelqlang.py
add visitor ir test visitor ir Signed-off-by: Doomsk <[email protected]>
Signed-off-by: Doomsk <[email protected]>
implement IR base classes to inherit from hhat_lang.core Signed-off-by: Doomsk <[email protected]>
…parser and evaluator Signed-off-by: Doomsk <[email protected]>
add function importer improve variables, memory stack, heap, and symbol tables finish IR parsing visitor improve grammar fix create new file on project Signed-off-by: Doomsk <[email protected]>
improve IR logic with symbol tables and ref tables add enum data structure (wip) improve IR visitor Signed-off-by: Doomsk <[email protected]>
(wip) improve IR visitor Signed-off-by: Doomsk <[email protected]>
…nd functions Signed-off-by: Doomsk <[email protected]>
improve other codes to utilize IR graph logic (wip) implement IR visitor with IR graph Signed-off-by: Doomsk <[email protected]>
add PEG grammar in python for faster parsing fix type and function imports, ref tables fix IR visitor Signed-off-by: Doomsk <[email protected]>
Signed-off-by: Doomsk <[email protected]>
(wip) big cleanup, big refactor Signed-off-by: Doomsk <[email protected]>
big cleanup, big refactor Signed-off-by: Doomsk <[email protected]>
Signed-off-by: Doomsk <[email protected]>
Signed-off-by: Doomsk <[email protected]>
Signed-off-by: Doomsk <[email protected]>
…, mul, div, pow Signed-off-by: Doomsk <[email protected]>
Signed-off-by: Doomsk <[email protected]>
# Conflicts: # .github/workflows/ci.yml # README.md # docs/CNAME # docs/TODOs.md # docs/core/index.md # docs/dialects/creation.md # docs/dialects/heather/current_syntax.md # docs/dialects/heather/heather_syntax.md # docs/dialects/heather/index.md # docs/index.md # docs/python/python_guide.md # docs/running_hhat.md # docs/stylesheets/extra.css # docs/toolchain.md # mkdocs.yml # python/README.md # python/pyproject.toml # python/src/hhat_lang/core/code/instructions.py # python/src/hhat_lang/core/code/utils.py # python/src/hhat_lang/core/data/core.py # python/src/hhat_lang/core/data/utils.py # python/src/hhat_lang/core/data/variable.py # python/src/hhat_lang/core/error_handlers/errors.py # python/src/hhat_lang/core/execution/abstract_base.py # python/src/hhat_lang/core/execution/abstract_program.py # python/src/hhat_lang/core/lowlevel/abstract_qlang.py # python/src/hhat_lang/core/memory/core.py # python/src/hhat_lang/core/types/__init__.py # python/src/hhat_lang/core/types/abstract_base.py # python/src/hhat_lang/core/types/core.py # python/src/hhat_lang/core/types/resolve_sizes.py # python/src/hhat_lang/core/utils.py # python/src/hhat_lang/dialects/heather/grammar/grammar.peg # python/src/hhat_lang/low_level/quantum_lang/openqasm/v2/__init__.py # python/src/hhat_lang/low_level/quantum_lang/openqasm/v2/instructions.py # python/src/hhat_lang/low_level/quantum_lang/openqasm/v2/qlang.py # python/src/hhat_lang/low_level/target_backend/qiskit/openqasm/code_executor.py # python/src/hhat_lang/toolchain/project/new.py # python/tests/core/test_type_ds.py # python/tests/dialects/heather/parsing/ex_fn01.hat # python/tests/dialects/heather/parsing/ex_fn02.hat # python/tests/dialects/heather/parsing/ex_main02.hat
Signed-off-by: Doomsk <[email protected]>
fix Heather's quantum program.py Signed-off-by: Doomsk <[email protected]>
fix ci workflow Signed-off-by: Doomsk <[email protected]>
Signed-off-by: Doomsk <[email protected]>
Signed-off-by: Doomsk <[email protected]>
(wip) add metafn grammar and functionality --new function constructors (wip) add metamod grammar fix and refactor memory, ir, ir visitor (wip), functions, types, symbol table (wip), ir builder (wip) to account for changes in the H-hat engine Signed-off-by: Doomsk <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR defines, implements and refactors code for function and cast structure, logic and overall expected behavior.
On the function side:
on the cast side:
pinging @q-inho