Skip to content

Commit

Permalink
For cudaq, set the default noise model a depolarization of 0.04
Browse files Browse the repository at this point in the history
  • Loading branch information
rtvuser1 committed Sep 28, 2024
1 parent 0d32900 commit 46c0c97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _common/cudaq/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def set_default_noise_model():

# We define a depolarization channel setting the probability
# of the qubit state being scrambled to `1.0`.
depolarization = cudaq.DepolarizationChannel(0.3)
depolarization = cudaq.DepolarizationChannel(0.04)

phase_flip = cudaq.PhaseFlipChannel(0.2)

Expand All @@ -155,6 +155,8 @@ def set_default_noise_model():
noise.add_channel('y', [i], depolarization)
noise.add_channel('z', [i], depolarization)

noise.add_channel('h', [i], depolarization)

# consider adding this
#noise.add_channel('x', [i], phase_flip)
#noise.add_channel('y', [i], phase_flip)
Expand Down

0 comments on commit 46c0c97

Please sign in to comment.