-
Couldn't load subscription status.
- Fork 0
add cudaq compile routine #11
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
base: equal1_develop
Are you sure you want to change the base?
Conversation
* add first version of Equal1 restBackend * cleanup
* add configuration options cleanup * quick fix error message extraction * update mock_qpu protocol set default server path to mock_qpu target
Adding readout_error as noiseChannel fix applyNoiseChannel
* Added support for local pipeline development * Changed device pass pipeline for remote execution * Fixed pipeline logic for development
python/cudaq/runtime/compile.py
Outdated
| newKernel = PyKernel([]) | ||
| newModule = mlir.Module.parse(asm = ctx.codes[0], context=newKernel.ctx) | ||
|
|
||
| #TODO: implement some clone mechanism |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python has already a deepcopy function in the copy module that works for any object. All you have to do is:
form copy import deepcopy
newKernel = deepcopy(kernel)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, the reason why deepcopy was not used, since it does not actually need a full clone of all the fields (the comment is misleading, so I've deleted it )
Since the pyKernel object contains a copy of the original compiled code (the original Quake IR) it would also make a full copy of that too, which is undesirable
Removed the comment actually
d98cb9e to
1ad2bb7
Compare
Description