diff --git a/src/stim/simulators/vector_simulator.cc b/src/stim/simulators/vector_simulator.cc index 6bcb18e10..adc81c185 100644 --- a/src/stim/simulators/vector_simulator.cc +++ b/src/stim/simulators/vector_simulator.cc @@ -75,7 +75,8 @@ void VectorSimulator::apply(GateType gate, size_t qubit) { try { apply(GATE_DATA[gate].unitary(), {qubit}); } catch (const std::out_of_range &) { - throw std::out_of_range("Single qubit gate isn't supported by VectorSimulator: " + std::string(GATE_DATA[gate].name)); + throw std::out_of_range( + "Single qubit gate isn't supported by VectorSimulator: " + std::string(GATE_DATA[gate].name)); } } @@ -83,7 +84,8 @@ void VectorSimulator::apply(GateType gate, size_t qubit1, size_t qubit2) { try { apply(GATE_DATA[gate].unitary(), {qubit1, qubit2}); } catch (const std::out_of_range &) { - throw std::out_of_range("Two qubit gate isn't supported by VectorSimulator: " + std::string(GATE_DATA[gate].name)); + throw std::out_of_range( + "Two qubit gate isn't supported by VectorSimulator: " + std::string(GATE_DATA[gate].name)); } }