public override void OnAllocateQubits(IQArray <Qubit> qubits) { var maxId = qubits.Max(q => q.Id); while (maxId >= simulationValues.Length) { simulationValues.Length *= 2; } }