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

Fix instruction names in hardware config file #214

Merged
merged 1 commit into from
Feb 19, 2019
Merged

Fix instruction names in hardware config file #214

merged 1 commit into from
Feb 19, 2019

Conversation

alxhotel
Copy link
Collaborator

This PR sanitizes the names of instructions with spaces in the hardware config JSON file.

For example, the following instructions are converted into cnot q[0] q[1]:

cnot q[0],q[1]
cnot q[0]         ,q[1]
cnot q[0],            q[1]
cnot q[0]      ,        q[1]]
cnot q[0]            q[1]
cnot             q[0] q[1]
cnot             q[0]               q[1]

I'm not sure why it keeps a comma for the normal instructions but not for the subinstructions. Anyway, this PR maintains that decision, so it should be retro-compatible.

@imranashraf imranashraf merged commit 9dc5f2b into QuTech-Delft:develop Feb 19, 2019
@alxhotel alxhotel deleted the fix_instruction_name_json branch February 19, 2019 11:17
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

2 participants