Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Use extension method to simplify code. (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Soeken authored May 20, 2020
1 parent e21bb9f commit b4cba4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/runtime/reversible-simulator/Simulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public override void Reset(Qubit qubit) {
public override Result M(Qubit qubit) =>
// The simulation value is converted to a Q# result value: `true`
// corresponds to `One`, and `false` corresponds to `Zero`.
simulationValues[qubit] ? Result.One : Result.Zero;
simulationValues[qubit].ToResult();
}

// The actual simulator is created by extending
Expand Down

0 comments on commit b4cba4b

Please sign in to comment.