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

test correctness of permutations when getting syndrome measurements #5

Open
Krastanov opened this issue Aug 11, 2023 · 0 comments
Open

Comments

@Krastanov
Copy link
Collaborator

Krastanov commented Aug 11, 2023

Now that we have #4, we can start adding some "property checking" tests. Something along the lines of:

circuit = ... # the straightforward circuit
qubit_permutations = ... # the permutations you are imposing
optimized_permuted_circuit = ... # the circuit with permuted gates

noise_on_all_qubits = ... # a circuit that runs noise on all qubits

pauli_frame_1 = ... # A sufficiently big pauli frame
pftrajectory!(pauli_frame_1, noise_on_all_qubits) # Make the pauli frame noisy

pauli_frame_2 = copy(pauli_frame_1)

# use qubit_permutations to permute the columns of the pauli_frame_2 tableaux

pftrajectory!(pauli_frame_1, circuit)
pftrajectory!(pauli_frame_2, optimized_permuted_circuit)

@test measurement results are the same for the two simulations
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

No branches or pull requests

1 participant