Skip to content

Commit

Permalink
Remove duplicate lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Misty-W committed Jan 26, 2024
1 parent e394820 commit c316dc0
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions docs/source/examples/learning-depolarizing-noise.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,26 +205,9 @@ pec_data = np.loadtxt(
epsilon0=epsilon0,
observable=observable,
)
print(success)
print(f"Difference of learned value from true value: {abs(epsilon_opt - epsilon) :.5f}")
print(f"Difference of initial guess from true value: {abs(epsilon0 - epsilon) :.5f}")
```

```{code-cell} ipython3
[success, epsilon_opt] = learn_depolarizing_noise_parameter(
operations_to_learn,
circuit,
ideal_executor,
noisy_executor,
pec_kwargs,
num_training_circuits=5,
fraction_non_clifford=0.2,
training_random_state=np.random.RandomState(1),
epsilon0=epsilon0,
observable=observable,
)
print(success)
print(f"Difference of learned value from true value: {abs(epsilon_opt - epsilon) :.5f}")
print(f"Difference of initial guess from true value: {abs(epsilon0 - epsilon) :.5f}")
Expand Down

0 comments on commit c316dc0

Please sign in to comment.