Skip to content

Commit

Permalink
Fixed typos in samples comments (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorveis committed May 24, 2024
1 parent cfab56c commit 56a224a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions samples/algorithms/BitFlipCode.qs
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ namespace Sample {
operation CorrectError(logicalQubit : Qubit[]) : Unit {
Fact(Length(logicalQubit) == 3, "`logicalQubit` must be length 3");

// Entangle the parity of the physical qubits into two auxillary qubits.
// Entangle the parity of the physical qubits into two auxiliary qubits.
use aux = Qubit[2];
CNOT(logicalQubit[0], aux[0]);
CNOT(logicalQubit[1], aux[0]);
CNOT(logicalQubit[1], aux[1]);
CNOT(logicalQubit[2], aux[1]);

// Measure the parity information from the auxillary qubits.
// Measure the parity information from the auxiliary qubits.
let (parity01, parity12) = (M(aux[0]), M(aux[1]));
ResetAll(aux);

Expand Down
2 changes: 1 addition & 1 deletion samples/algorithms/DeutschJozsaNISQ.qs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace Sample {
/// The number of bits in the input register |𝑥〉.
///
/// # Output
/// An array of measurement results for the query reguster.
/// An array of measurement results for the query register.
/// All `Zero` measurement results indicate that the function is constant.
/// At least one `One` measurement result in the array indicates that the
/// function is balanced.
Expand Down
2 changes: 1 addition & 1 deletion samples/algorithms/RandomBit.qs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Sample {

@EntryPoint()
operation RandomBit() : Result {
// Qubits are only accesible for the duration of the scope where they
// Qubits are only accessible for the duration of the scope where they
// are allocated and are automatically released at the end of the scope.
use qubit = Qubit();

Expand Down
4 changes: 2 additions & 2 deletions samples/algorithms/Superposition.qs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Sample {

@EntryPoint()
operation Superposition() : Result {
// Qubits are only accesible for the duration of the scope where they
// Qubits are only accessible for the duration of the scope where they
// are allocated and are automatically released at the end of the scope.
use qubit = Qubit();

Expand All @@ -23,4 +23,4 @@ namespace Sample {
Reset(qubit);
return result;
}
}
}
2 changes: 1 addition & 1 deletion samples/algorithms/ThreeQubitRepetitionCode.qs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Microsoft.Quantum.Samples {
} apply {
let iterations = 5;
for _ in 1..iterations {
// Apply a unitary operatyion to the encoded register that shuold
// Apply a unitary operation to the encoded register that should
// effectively perform an identity operation but may be noisy
// on the quantum hardware and introduce errors.
ApplyRotationalIdentity(encodedRegister);
Expand Down

0 comments on commit 56a224a

Please sign in to comment.