2#ifdef INCLUDED_BY_FACTORY
11 explicit CompositeSimulator(SimulatorType type = SimulatorType::kQCSim)
12 : FusionSimulator(std::make_shared<ImmediateCompositeSimulator>(type)), childType_(type)
18 return childType_ == SimulatorType::kQCSim ? 3 : 0;
21 std::unique_ptr<ISimulator> Clone()
override
23 auto copy = std::make_unique<CompositeSimulator>(childType_);
28 std::unique_ptr<ISimulator> CloneForExecution(uint64_t seed)
override
30 auto copy = std::make_unique<CompositeSimulator>(childType_);
31 CloneInto(*copy, &seed);
37 bool InitializationPreservesSnapshots()
const override
unsigned GetGateFusionMaxQubits(void *sim)
SimulatorType
The type of simulator.