@@ -364,8 +364,7 @@ class SimpleDisconnectedNetwork : public INetwork<Time> {
364364 if (!controller || !circuit) return {};
365365
366366 distCirc = controller->DistributeCircuit (BaseClass::getptr (), circuit);
367- if (!distCirc)
368- return {};
367+ if (!distCirc) return {};
369368
370369#ifdef _DEBUG
371370 for (auto q : distCirc->AffectedQubits ()) {
@@ -423,7 +422,8 @@ class SimpleDisconnectedNetwork : public INetwork<Time> {
423422
424423 // do that only if the optimization for simulator is on and the estimator is
425424 // available, ortherwise an 'optimal' simulator won't be created
426- if (optimizeSimulator && simulatorsEstimator && simulatorsEstimator->IsInitialized ()) {
425+ if (optimizeSimulator && simulatorsEstimator &&
426+ simulatorsEstimator->IsInitialized ()) {
427427 simulator->Clear ();
428428 GetState ().Clear ();
429429 }
@@ -457,8 +457,9 @@ class SimpleDisconnectedNetwork : public INetwork<Time> {
457457 // created in the threads if optimization already exists, it will be
458458 // cloned in the threads, otherwise a new one will be created in the
459459 // threads
460- if (!optimizeSimulator ||
461- !simulatorsEstimator || !simulatorsEstimator->IsInitialized ()) // otherwise it was already cleared
460+ if (!optimizeSimulator || !simulatorsEstimator ||
461+ !simulatorsEstimator
462+ ->IsInitialized ()) // otherwise it was already cleared
462463 {
463464 simulator->Clear ();
464465 GetState ().Clear ();
@@ -514,7 +515,8 @@ class SimpleDisconnectedNetwork : public INetwork<Time> {
514515 // use the already created simulator
515516 optSim = simulator;
516517 job->optSim = optSim;
517- job->executedGates .resize (distCirc->size (), false ); // no gates executed yet
518+ job->executedGates .resize (distCirc->size (),
519+ false ); // no gates executed yet
518520 simulator = nullptr ;
519521 }
520522 }
@@ -1725,7 +1727,8 @@ class SimpleDisconnectedNetwork : public INetwork<Time> {
17251727 bool dontRunCircuitStart = false ) const override {
17261728 if (!optimizeSimulator) return nullptr ;
17271729
1728- if ((!simulatorsEstimator || !simulatorsEstimator->IsInitialized ()) && simulatorsForOptimizations.size () != 1 )
1730+ if ((!simulatorsEstimator || !simulatorsEstimator->IsInitialized ()) &&
1731+ simulatorsForOptimizations.size () != 1 )
17291732 return nullptr ;
17301733
17311734 // when multithreading is set to true it means it needs a multithreaded
@@ -1823,10 +1826,11 @@ class SimpleDisconnectedNetwork : public INetwork<Time> {
18231826 simulatorTypes.emplace_back (
18241827 Simulators::SimulatorType::kGpuSim ,
18251828 Simulators::SimulationType::kMatrixProductState );
1826- if (OptimizationSimulatorExists (Simulators::SimulatorType::kGpuSim ,
1829+ if (OptimizationSimulatorExists (
1830+ Simulators::SimulatorType::kGpuSim ,
18271831 Simulators::SimulationType::kTensorNetwork ))
18281832 simulatorTypes.emplace_back (Simulators::SimulatorType::kGpuSim ,
1829- Simulators::SimulationType::kTensorNetwork );
1833+ Simulators::SimulationType::kTensorNetwork );
18301834 }
18311835#endif
18321836
0 commit comments