Skip to content

Commit

Permalink
doc typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Zeng committed Jan 10, 2017
1 parent b7fecba commit 3771434
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions docs/vqe/vqe_example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,15 @@ noise on the result of this algorithm:
:scale: 75%


It looks like this algorithm is pretty robust to noise up until 1% error.
It looks like this algorithm is pretty robust to noise up until 0.6% error.
However measurement noise might be a different story.

.. code:: python
meas_channel = [0.1, 0.1, 0.1] #10% chance of each gate at each measurement
noisy_meas_qvm = forest.Connection(measurement_noise=meas_channel)
Again we can check to see this noise:
Measurement noise has a different effect:

.. code:: python
Expand All @@ -245,13 +245,13 @@ Again we can check to see this noise:
.. code:: python
data = []
noises = np.linspace(0.0, 0.01, 4)
for noise in noises:
meas_channel = [noise] * 3
noisy_qvm = forest.Connection(measurement_noise=meas_channel)
result = vqe_inst.vqe_run(small_ansatz, hamiltonian, initial_angle, samples=10000, qvm=noisy_qvm)
data.append(result['fun'])
data = []
noises = np.linspace(0.0, 0.01, 4)
for noise in noises:
meas_channel = [noise] * 3
noisy_qvm = forest.Connection(measurement_noise=meas_channel)
result = vqe_inst.vqe_run(small_ansatz, hamiltonian, initial_angle, samples=10000, qvm=noisy_qvm)
data.append(result['fun'])
.. code:: python
Expand All @@ -264,6 +264,7 @@ for noise in noises:
:align: center
:scale: 75%

We see this particular VQE algorithm is generally more sensitive to measurement noise than gate noise.

More sophisticated ansatzes
---------------------------
Expand Down

0 comments on commit 3771434

Please sign in to comment.