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

[Feature] Create a IRBuilder and ir_compiler_factory #4

Merged
merged 49 commits into from
Aug 12, 2024

Conversation

kaosmicadei
Copy link
Contributor

Currently, these helper functionalities aim to be used in the Qadence 1 syntax port. Later, they can be used to implement new input formats for Qadence 2 IR.

Closes #1

@kaosmicadei kaosmicadei linked an issue Jul 21, 2024 that may be closed by this pull request
@kaosmicadei kaosmicadei self-assigned this Jul 21, 2024
Copy link
Contributor

@RolandMacDoland RolandMacDoland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @kaosmicadei. Some (hopefully useful) comments from me.

qadence2_ir/__init__.py Show resolved Hide resolved
qadence2_ir/irbuilder.py Outdated Show resolved Hide resolved
qadence2_ir/factory.py Outdated Show resolved Hide resolved
qadence2_ir/factory.py Outdated Show resolved Hide resolved
qadence2_ir/factory.py Outdated Show resolved Hide resolved
qadence2_ir/factory_tools.py Outdated Show resolved Hide resolved
qadence2_ir/irast.py Show resolved Hide resolved
qadence2_ir/irast.py Show resolved Hide resolved
qadence2_ir/irast.py Outdated Show resolved Hide resolved
qadence2_ir/irbuilder.py Show resolved Hide resolved
@kaosmicadei kaosmicadei changed the title Create a IRBuilder and irc_factory [Feature] Create a IRBuilder and ir_compiler_factory Jul 30, 2024
Copy link
Contributor

@RolandMacDoland RolandMacDoland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @kaosmicadei, really nice. Minor cosmetic comments. I would pay attention to docstrings and layouts in general. Also, we can move to pytest if we want to run that on the CI 😬. Will approve in following but that should be relatively quick.

qadence2_ir/factory.py Show resolved Hide resolved
qadence2_ir/factory.py Outdated Show resolved Hide resolved
qadence2_ir/factory.py Outdated Show resolved Hide resolved
qadence2_ir/factory_tools.py Show resolved Hide resolved
qadence2_ir/factory_tools.py Outdated Show resolved Hide resolved
qadence2_ir/irast.py Show resolved Hide resolved
qadence2_ir/irast.py Outdated Show resolved Hide resolved
qadence2_ir/irbuilder.py Outdated Show resolved Hide resolved
qadence2_ir/irbuilder.py Show resolved Hide resolved
tests/test_factory_tools.py Outdated Show resolved Hide resolved
@Doomsk Doomsk self-requested a review August 12, 2024 10:12
Copy link
Member

@Doomsk Doomsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems good to me for now. We should move on with this to enable other libraries.

@kaosmicadei kaosmicadei merged commit e4ed114 into main Aug 12, 2024
5 checks passed
@kaosmicadei kaosmicadei deleted the km/ir-factory branch August 12, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Add IR factory
3 participants