Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Commit

Permalink
Fix for issue #319 (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
RohitMidha23 authored and derivation committed Jun 10, 2019
1 parent 8ec9b6a commit b897d5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,15 @@ circuit will yield either the bit string 00 or 11.
.. code-block:: python
simulator = Aer.get_backend('qasm_simulator')
job = execute(circ, simulator, shots=1000)
job = execute(circuit, simulator, shots=1000)
result = job.result()
counts = result.get_counts(circ)
print("\nTotal count for 00 and 11 are:",counts)
.. code-block:: text
Total count for 00 and 11 are: {'00': 514, '11': 510}
Total count for 00 and 11 are: {'00': 504, '11': 496}
As expected, the output bit string is 00 approximately 50 percent of the time.
The number of times the circuit is run can be specified via the ``shots``
Expand Down

0 comments on commit b897d5d

Please sign in to comment.