Skip to content

Conversation

@AndreiCod
Copy link

Besides the if else statement added all the changes are formatting done automatically


devicePassPipeline = queryPassPipeline();

if (config.count("emulate") && config["emulate"] == "false")
Copy link
Collaborator

Choose a reason for hiding this comment

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

what happens if config.count("emulate") equals to 0?
That means it will assume no emulation instead of not config not existing

Copy link
Author

Choose a reason for hiding this comment

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

Basically we assume that if the "emulate" keyword is not present we are not emulating. I'm not sure if the key is required to be present in the config dictionary. This is the reason why I implemented it like this

Copy link
Collaborator

Choose a reason for hiding this comment

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

but if the emulate keyword is not present, then we will not get into the if-branch cause count will return 0 right ?

Copy link
Author

Choose a reason for hiding this comment

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

yes

if (config.count("emulate") && config["emulate"] == "false")
devicePassPipeline = queryPassPipeline();
else
devicePassPipeline = "canonicalize";
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we put "const-prop-complex, canonicalize, cse" as the pipeline? It can make IR more readable if we will get to debug it

@szilveszteri szilveszteri merged commit 3a9cb9c into equal1_develop Dec 10, 2024
5 checks passed
@szilveszteri szilveszteri deleted the local_pass_pipeline_support branch December 10, 2024 15:44
github-actions bot pushed a commit that referenced this pull request Dec 10, 2024
szilveszteri pushed a commit that referenced this pull request Mar 31, 2025
* initial work

* Orginazing Pasqal files (#3)

* fix PasqalServerHelper 

* fix CMakeLists

* Minor cosmetic changes

* Fix constant values

Also:

* Python imports in alphabetical order

* Fix `analog_targets` list declaration on `evolution.py`

* Helper methods implementation (#4)

Implement the following methods:

* `extractJobId`

* ` constructGetJobPath` (both variants)

* `jobIsDone`

* `processResults` (without index order verification)

* fix field name on payload

* fix `createJob` path

* begin docs

* Add PasqalTester

* [hotfix] Pasqal `constructGetJobPath`

* Review on Pasqal files (#10)

* Add `project_id` to payload.

* Fix `extractJobId` path.

* fix machine and user-agent information

* push machine from config

* DCO Remediation Commit for Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>

I, Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>, hereby add my Signed-off-by to this commit: 8d323f2
I, Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>, hereby add my Signed-off-by to this commit: 9665a97

Signed-off-by: Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>

* DCO Remediation Commit for Kaonan Micadei <k.micadei@gmail.com>

I, Kaonan Micadei <k.micadei@gmail.com>, hereby add my Signed-off-by to this commit: fb77b36

Signed-off-by: Kaonan Micadei <k.micadei@gmail.com>

* DCO Remediation Commit for Kaonan Micadei <k.micadei@gmail.com>

I, Kaonan Micadei <k.micadei@gmail.com>, hereby add my Signed-off-by to this commit: cb78788
I, Kaonan Micadei <k.micadei@gmail.com>, hereby add my Signed-off-by to this commit: 734dad9

Signed-off-by: Kaonan Micadei <k.micadei@gmail.com>

* DCO Remediation Commit for Kaonan Micadei <kaosmicadei@users.noreply.github.com>

I, Kaonan Micadei <kaosmicadei@users.noreply.github.com>, hereby add my Signed-off-by to this commit: f35782c
I, Kaonan Micadei <kaosmicadei@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 451c414
I, Kaonan Micadei <kaosmicadei@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 48eb189
I, Kaonan Micadei <kaosmicadei@users.noreply.github.com>, hereby add my Signed-off-by to this commit: e320af0
I, Kaonan Micadei <kaosmicadei@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 0e36977

Signed-off-by: Kaonan Micadei <kaosmicadei@users.noreply.github.com>

* DCO Remediation Commit for Kaonan Micadei <k.micadei@gmail.com>

I, Kaonan Micadei <k.micadei@gmail.com>, hereby add my Signed-off-by to this commit: 04efb12

Signed-off-by: Kaonan Micadei <k.micadei@gmail.com>

* Update PasqalServerHelper.cpp

DCO Remediation Commit for Kaonan Micadei <kaosmicadei@users.noreply.github.com>

I, Kaonan Micadei <kaosmicadei@users.noreply.github.com>, hereby add my Signed-off-by to this commit: f35782c
I, Kaonan Micadei <kaosmicadei@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 451c414
I, Kaonan Micadei <kaosmicadei@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 48eb189
I, Kaonan Micadei <kaosmicadei@users.noreply.github.com>, hereby add my Signed-off-by to this commit: e320af0
I, Kaonan Micadei <kaosmicadei@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 0e36977

Signed-off-by: Kaonan Micadei <kaosmicadei@users.noreply.github.com>

Signed-off-by: Kaonan Micadei <kaosmicadei@users.noreply.github.com>

* Minor edits on docs

Signed-off-by: Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>

* [fix] Pasqal payload format

Signed-off-by: Kaonan Micadei <k.micadei@gmail.com>

* Fix issues preventing correct execution and update example

Signed-off-by: Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>

* Apply basic CR

Signed-off-by: Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>

* target opt-out

Signed-off-by: Kaonan Micadei <kaonan.micadei@pasqal.com>

* Test behavior from C++ frontend when using `pasqal` target
* Moved test to common `analog` directory

Signed-off-by: Pradnya Khalate <pkhalate@nvidia.com>

* Fix code to use new results json structure

Signed-off-by: Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>

* Apply yapf formatting to Python

Signed-off-by: Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>

* Fix docs rendering

Signed-off-by: Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>

* Integration test

Signed-off-by: Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>

* Fix integration test - missing dependency

Signed-off-by: Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>

* Fix behaviour when job fails; fix constant in doc example

Signed-off-by: Kaonan Micadei <kaonan.micadei@pasqal.com>

* fix spell check

Signed-off-by: Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>

* Update example to show how to target QPU
* Modified tests - removed the one which is repeat of the example
* Updated logos to add new hardware target
* Check for the password in environment variables

Signed-off-by: Pradnya Khalate <pkhalate@nvidia.com>

* Update docs and remove todo

Signed-off-by: Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>

* results now in big-endian

Signed-off-by: Kaonan Micadei <kaonan.micadei@pasqal.com>

* Updated logo

Signed-off-by: Pradnya Khalate <pkhalate@nvidia.com>

---------

Signed-off-by: Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>
Signed-off-by: Kaonan Micadei <k.micadei@gmail.com>
Signed-off-by: Kaonan Micadei <kaosmicadei@users.noreply.github.com>
Signed-off-by: Kaonan Micadei <kaonan.micadei@pasqal.com>
Signed-off-by: Pradnya Khalate <pkhalate@nvidia.com>
Co-authored-by: Kaonan Micadei <kaosmicadei@users.noreply.github.com>
Co-authored-by: Kaonan Micadei <k.micadei@gmail.com>
Co-authored-by: Kaonan Micadei <kaonan.micadei@pasqal.com>
Co-authored-by: Pradnya Khalate <pkhalate@nvidia.com>
Co-authored-by: Pradnya Khalate <148914294+khalatepradnya@users.noreply.github.com>
szilveszteri pushed a commit that referenced this pull request Apr 1, 2025
* Added support for local pipeline development

* Changed device pass pipeline for remote execution

* Fixed pipeline logic for development
szilveszteri pushed a commit that referenced this pull request Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants