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

First shot memory #61

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

justinlietz
Copy link
Collaborator

Change the API of qec::sample_memory_circuit to return nRounds of data as opposed to nRounds - 1 of data. Along with returning nRounds - 1 of xor'd syndrome data, the initial unxor'd shot is also returned first.

@justinlietz justinlietz requested a review from bmhowe23 January 26, 2025 20:07
Copy link
Collaborator

@bmhowe23 bmhowe23 left a comment

Choose a reason for hiding this comment

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

Thanks, Justin

@@ -795,14 +804,15 @@ Function Variants
# Memory circuit with custom initial state
syndromes, measurements = qec.sample_memory_circuit(
code, # QEC code instance
state_prep=qec.operation.prep1, # Initial state
op=qec.operation.prep1, # Initial state
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit:

Suggested change
op=qec.operation.prep1, # Initial state
op=qec.operation.prep1, # Initial state

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