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 67a7f36 commit 7790744
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stim/stabilizers/conversions.inl
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,10 @@ Tableau<W> stabilizers_to_tableau(
}

if (num_qubits > 0) {
// Force size of resulting tableau to be correct.
GateTarget t = GateTarget::qubit(num_qubits - 1);
elimination_instructions.safe_append(CircuitInstruction{GateType::I, {}, &t});
elimination_instructions.safe_append(CircuitInstruction{GateType::X, {}, &t});
elimination_instructions.safe_append(CircuitInstruction{GateType::X, {}, &t});
}

if (invert) {
Expand Down

0 comments on commit 7790744

Please sign in to comment.