diff --git a/src/stim/util_top/reference_sample_tree.test.cc b/src/stim/util_top/reference_sample_tree.test.cc index d6b7ec2c..858a8e66 100644 --- a/src/stim/util_top/reference_sample_tree.test.cc +++ b/src/stim/util_top/reference_sample_tree.test.cc @@ -264,14 +264,5 @@ TEST(ReferenceSampleTree, surface_code_with_pauli_vs_normal_reference_sample) { circuit.blocks[0].append_from_text("X 10 11 12 13"); auto ref = ReferenceSampleTree::from_circuit_reference_sample(circuit); ASSERT_EQ(ref.size(), circuit.count_measurements()); - - std::vector ref_uncompressed; - ref.decompress_into(ref_uncompressed); - simd_bits ref_flat(ref_uncompressed.size()); - for (size_t k = 0; k < ref_uncompressed.size(); k++) { - ref_flat[k] = ref_uncompressed[k]; - } - - auto ref2 = TableauSimulator::reference_sample_circuit(circuit); - ASSERT_EQ(ref_flat, ref2); + expect_tree_matches_normal_reference_sample_of(ref, circuit); }