Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc committed Nov 1, 2024
1 parent 762c77e commit 157a0d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion glue/javascript/tableau_simulator.js.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct JsCircuitInstruction {
}
}
operator CircuitInstruction() const {
return {gate_type, {}, targets};
return {gate_type, {}, targets, ""};
}
};

Expand Down
8 changes: 4 additions & 4 deletions src/stim/simulators/frame_simulator.perf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ BENCHMARK(FrameSimulator_depolarize1_100Kqubits_1Ksamples_per1000) {
for (uint32_t k = 0; k < stats.num_qubits; k++) {
targets.push_back(GateTarget{k});
}
CircuitInstruction op_data{GateType::DEPOLARIZE1, &probability, targets};
CircuitInstruction op_data{GateType::DEPOLARIZE1, &probability, targets, ""};
benchmark_go([&]() {
sim.do_DEPOLARIZE1(op_data);
})
Expand All @@ -52,7 +52,7 @@ BENCHMARK(FrameSimulator_depolarize2_100Kqubits_1Ksamples_per1000) {
for (uint32_t k = 0; k < stats.num_qubits; k++) {
targets.push_back({k});
}
CircuitInstruction op_data{GateType::DEPOLARIZE2, &probability, targets};
CircuitInstruction op_data{GateType::DEPOLARIZE2, &probability, targets, ""};

benchmark_go([&]() {
sim.do_DEPOLARIZE2(op_data);
Expand All @@ -72,7 +72,7 @@ BENCHMARK(FrameSimulator_hadamard_100Kqubits_1Ksamples) {
for (uint32_t k = 0; k < stats.num_qubits; k++) {
targets.push_back({k});
}
CircuitInstruction op_data{GateType::H, {}, targets};
CircuitInstruction op_data{GateType::H, {}, targets, ""};

benchmark_go([&]() {
sim.do_H_XZ(op_data);
Expand All @@ -92,7 +92,7 @@ BENCHMARK(FrameSimulator_CX_100Kqubits_1Ksamples) {
for (uint32_t k = 0; k < stats.num_qubits; k++) {
targets.push_back({k});
}
CircuitInstruction op_data{GateType::CX, {}, targets};
CircuitInstruction op_data{GateType::CX, {}, targets, ""};

benchmark_go([&]() {
sim.do_ZCX(op_data);
Expand Down
2 changes: 1 addition & 1 deletion src/stim/simulators/tableau_simulator.perf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ BENCHMARK(TableauSimulator_CX_10Kqubits) {
for (uint32_t k = 0; k < (uint32_t)num_qubits; k++) {
targets.push_back(GateTarget{k});
}
CircuitInstruction op_data{GateType::CX, {}, targets};
CircuitInstruction op_data{GateType::CX, {}, targets, ""};

benchmark_go([&]() {
sim.do_ZCX(op_data);
Expand Down

0 comments on commit 157a0d1

Please sign in to comment.