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

[feature] Multi-shot sampling from GeneralState #129

Merged
merged 81 commits into from
Jun 27, 2024

Conversation

PabloAndresCQ
Copy link
Collaborator

@PabloAndresCQ PabloAndresCQ commented Jun 13, 2024

Description

  • Adds support for sample to obtain multiple shots from end-of-circuit measurements using the GeneralState framework.
  • Additionally, removes the need for replacing implicit wire swaps with SWAP gates.

Related issues

First step towards #121.

Checklist

  • I have run the tests on a device with GPUs.
  • I have performed a self-review of my code.
  • I have commented hard-to-understand parts of my code.
  • I have made corresponding changes to the public API documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the changelog with any user-facing changes.

… Added `GeneralState.update_gates()` method.
@PabloAndresCQ PabloAndresCQ marked this pull request as ready for review June 13, 2024 14:55
@PabloAndresCQ PabloAndresCQ changed the title Feature/general sampler [feature] Multi-shot sampling from GeneralState Jun 13, 2024
@PabloAndresCQ PabloAndresCQ mentioned this pull request Jun 25, 2024
6 tasks
Base automatically changed from feature/exact_state to main June 26, 2024 14:33
Copy link
Collaborator

@jake-arkinstall jake-arkinstall left a comment

Choose a reason for hiding this comment

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

This PR cleans up the interface nicely and adds an extremely useful method. The code is clean and merging does not introduce any issues to testing or performance on my system. Merging is a no-brainer to me!

@PabloAndresCQ PabloAndresCQ merged commit ea4bf70 into main Jun 27, 2024
8 checks passed
@PabloAndresCQ PabloAndresCQ deleted the feature/general_sampler branch June 27, 2024 09:02
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.

3 participants