Skip to content

Commit 84d7682

Browse files
Helpful comments
1 parent a36421a commit 84d7682

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qstabilizerhybrid.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ void QStabilizerHybrid::FlushIfBlocked(bitLenInt control, bitLenInt target, bool
214214
shard->gate[0U] = complex(angleCos, -angleSin);
215215
shard->gate[3U] = complex(angleCos, angleSin);
216216

217-
// Form potentially entangled representation, with this.
217+
// Form a representation of state that can entangle a new (or reused) ancilla.
218218
bitLenInt ancillaIndex = deadAncillaCount
219219
? (qubitCount + ancillaCount)
220220
: stabilizer->Compose(std::make_shared<QUnitClifford>(
@@ -230,7 +230,7 @@ void QStabilizerHybrid::FlushIfBlocked(bitLenInt control, bitLenInt target, bool
230230
Mtrx(shard->gate, ancillaIndex);
231231
H(ancillaIndex);
232232

233-
// When we measure, we act postselection, but not yet.
233+
// When we eventually measure, we act postselection, but not yet.
234234
// ForceM(ancillaIndex, false, true, true);
235235
// Ancilla is separable after measurement.
236236
// Dispose(ancillaIndex, 1U);

0 commit comments

Comments
 (0)