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

Add Quantum Infinity configurator #496

Merged
merged 5 commits into from
Sep 3, 2018
Merged

Conversation

slavoutich
Copy link
Contributor

@AdriaanRol Please take a look.

@slavoutich slavoutich changed the title add Quantum Infinity configurator WIP: add Quantum Infinity configurator Aug 16, 2018
@coveralls
Copy link

coveralls commented Aug 16, 2018

Pull Request Test Coverage Report for Build 3750

  • 0 of 86 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.05%) to 35.681%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pycqed/measurement/openql_experiments/generate_qi_cfg.py 0 86 0.0%
Totals Coverage Status
Change from base Build 3663: -0.05%
Covered Lines: 20287
Relevant Lines: 56856

💛 - Coveralls

Copy link
Contributor

@AdriaanRol AdriaanRol left a comment

Choose a reason for hiding this comment

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

LGTM! Feel free to merge

@slavoutich slavoutich changed the title WIP: add Quantum Infinity configurator Add Quantum Infinity configurator Aug 21, 2018
@slavoutich
Copy link
Contributor Author

slavoutich commented Aug 30, 2018

The following commands are defined now. Any opinion to adjust them?

    Declaring following assembler commands:
i {}
rot_m135_180 {}
rot_m124.2_180 {}
rot_m99_180 {}
rot_m82.8_180 {}
rot_m45_180 {}
rot_0_m90 {}
rot_0_m41.4 {}
rot_0_m14.4 {}
rot_0_14.4 {}
rot_0_90 {}
rot_0_120.6 {}
rot_0_180 {}
rot_90_m90 {}
rot_90_90 {}
rot_90_180 {}
    Declaring following gate decompositions:
('rx120.6 %0', ['rot_0_120.6 %0'])
('rxm41.4 %0', ['rot_0_m41.4 %0'])
('rxm14.4 %0', ['rot_0_m14.4 %0'])
('rx14.4 %0', ['rot_0_14.4 %0'])
('rxm90 %0', ['rot_0_m90 %0'])
('rx90 %0', ['rot_0_90 %0'])
('rx180 %0', ['rot_0_180 %0'])
('rym90 %0', ['rot_90_m90 %0'])
('ry90 %0', ['rot_90_90 %0'])
('ry180 %0', ['rot_90_180 %0'])
('rzm68.4 %0', ['rot_90_180 %0', 'rot_m124.2_180 %0'])
('rz14.4 %0', ['rot_90_180 %0', 'rot_m82.8_180 %0'])
('rzm18 %0', ['rot_90_180 %0', 'rot_m99_180 %0'])
('rzm90 %0', ['rot_90_180 %0', 'rot_m135_180 %0'])
('rz90 %0', ['rot_90_180 %0', 'rot_m45_180 %0'])
('rz180 %0', ['rot_90_180 %0', 'rot_0_180 %0'])
('x %0', ['rx180 %0'])
('y %0', ['ry180 %0'])
('roty90 %0', ['ry90 %0'])
('cnot %0,%1', ['ry90 %1', 'cz %0,%1', 'ry90 %1'])
('x180 %0', ['rx180 %0'])
('y180 %0', ['ry180 %0'])
('y90 %0', ['ry90 %0'])
('x90 %0', ['rx90 %0'])
('my90 %0', ['rym90 %0'])
('mx90 %0', ['rxm90 %0'])
('cl_0 %0', ['i %0'])
('cl_1 %0', ['ry90 %0', 'rx90 %0'])
('cl_2 %0', ['rxm90 %0', 'rym90 %0'])
('cl_3 %0', ['rx180 %0'])
('cl_4 %0', ['rym90 %0', 'rxm90 %0'])
('cl_5 %0', ['rx90 %0', 'rym90 %0'])
('cl_6 %0', ['ry180 %0'])
('cl_7 %0', ['rym90 %0', 'rx90 %0'])
('cl_8 %0', ['rx90 %0', 'ry90 %0'])
('cl_9 %0', ['rx180 %0', 'ry180 %0'])
('cl_10 %0', ['ry90 %0', 'rxm90 %0'])
('cl_11 %0', ['rxm90 %0', 'ry90 %0'])
('cl_12 %0', ['ry90 %0', 'rx180 %0'])
('cl_13 %0', ['rxm90 %0'])
('cl_14 %0', ['rx90 %0', 'rym90 %0', 'rxm90 %0'])
('cl_15 %0', ['rym90 %0'])
('cl_16 %0', ['rx90 %0'])
('cl_17 %0', ['rx90 %0', 'ry90 %0', 'rx90 %0'])
('cl_18 %0', ['rym90 %0', 'rx180 %0'])
('cl_19 %0', ['rx90 %0', 'ry180 %0'])
('cl_20 %0', ['rx90 %0', 'rym90 %0', 'rx90 %0'])
('cl_21 %0', ['ry90 %0'])
('cl_22 %0', ['rxm90 %0', 'ry180 %0'])
('cl_23 %0', ['rx90 %0', 'ry90 %0', 'rxm90 %0'])

    1. Less dots (`rot_0.0_90.0` -> `rot_0_90`)
    2. All instructions now are argumentless (OpenQL supports only
    `codeword qX` style.
    3. Minor cleanup.
@slavoutich
Copy link
Contributor Author

@AdriaanRol Now QASM looks good and should work with OpenQL. If you review now, I will merge.

@slavoutich slavoutich merged commit f4cc2ea into master Sep 3, 2018
@AdriaanRol AdriaanRol deleted the task/quantuminfinity_config branch September 10, 2018 17:51
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.

None yet

3 participants