Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/Simulation/Common/QubitManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ private void ExtendQubitArray()
{
if (oldQubitsArray[i] == oldNone) {
// Point to the first new (free) element
Debug.Assert(false,"Why do we extend an array, when we still have available slots?");
this.qubits[i] = oldNumQubits;
} else if (oldQubitsArray[i] == oldAllocated) {
// Allocated qubits are marked differently now.
Expand All @@ -131,9 +130,6 @@ private void ExtendQubitArray()
{
free = oldNumQubits;
freeTail = NumQubits - 1;
} else
{
Debug.Assert(false, "Why do we extend an array, when we still have available slots?");
}
}

Expand Down