Skip to content

Commit

Permalink
size fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc committed Mar 14, 2024
1 parent 7790744 commit cc7029d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/stim/stabilizers/conversions.inl
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,15 @@ Tableau<W> stabilizers_to_tableau(

size_t used = 0;
for (const auto &e : stabilizers) {
buf = e;
if (e.num_qubits == num_qubits) {
buf = e;
} else {
buf.xs.clear();
buf.zs.clear();
memcpy(buf.xs.u8, e.xs.u8, e.xs.num_u8_padded());
memcpy(buf.zs.u8, e.zs.u8, e.zs.num_u8_padded());
buf.sign = e.sign;
}
buf.ref().do_circuit(elimination_instructions);

// Find a non-identity term in the Pauli string past the region used by other stabilizers.
Expand Down

0 comments on commit cc7029d

Please sign in to comment.