Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vasinov authored Sep 30, 2019
1 parent fc6d453 commit 5cc05e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ val circuit = entangle(1, 2)
.combine(CNOT(1, 2), Controlled(0, Z(2)))
.withRegister(register)

implicit val sim = QuantumSimulator()

assert(
QubitProbabilityReader(register, QuantumSimulator().run(circuit))
QubitProbabilityReader(register, sim.run(circuit))
.read("there")
.fold(false)(_.probabilityOfOne ~= msg.probabilityOfOne))
```
Expand Down

0 comments on commit 5cc05e5

Please sign in to comment.