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

Qrisp #59

Merged
merged 2 commits into from
Nov 13, 2023
Merged

Qrisp #59

merged 2 commits into from
Nov 13, 2023

Conversation

stroblme
Copy link
Member

@stroblme stroblme commented Nov 10, 2023

This PR adds the Qrisp fw to Quafel according to #56

Signed-off-by: lc3267 <melvin.strobl@kit.edu>
Signed-off-by: lc3267 <melvin.strobl@kit.edu>
@stroblme stroblme mentioned this pull request Nov 13, 2023
Comment on lines +180 to +183
for i in range(2**self.n_qubits):
bitstring = format(i, f"0{self.n_qubits}b")
if bitstring not in counts.keys():
counts[bitstring] = 0
Copy link
Member

Choose a reason for hiding this comment

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

In case you are using this for several of the frameworks you might consider refactoring this as a function that takes care on filling up the blanks in your counts dictionary.

Copy link
Member Author

Choose a reason for hiding this comment

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

good point, will create an issue and refactor this in another pr as it affects multiple fws

Copy link
Member

@eileen-kuehn eileen-kuehn left a comment

Choose a reason for hiding this comment

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

Simple enough 😅 Go for it! 🥇

@stroblme stroblme merged commit f1f1645 into main Nov 13, 2023
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