Skip to content

Commit

Permalink
name updates
Browse files Browse the repository at this point in the history
Signed-off-by: A.M. Santana <[email protected]>
  • Loading branch information
anthony-santana committed Aug 7, 2023
1 parent b3eb2ba commit 83d161e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/sphinx/examples/python/noise_bit_flip.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
noise = cudaq.NoiseModel()

# Bit flip channel with `1.0` probability of the qubit flipping 180 degrees.
bit_flip_one = cudaq.BitFlipChannel(1.0)
bit_flip = cudaq.BitFlipChannel(1.0)
# We will apply this channel to any X gate on the qubit, giving each X-gate
# a probability of `1.0` of undergoing an extra X-gate.
noise.add_channel('x', [0], bit_flip_one)
noise.add_channel('x', [0], bit_flip)

# Now we may define our simple kernel function and allocate a register
# of qubits to it.
Expand Down
4 changes: 2 additions & 2 deletions docs/sphinx/examples/python/noise_depolarization.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

# Depolarization channel with `1.0` probability of the qubit state
# being scrambled.
depolarization_channel = cudaq.DepolarizationChannel(1.0)
depolarization = cudaq.DepolarizationChannel(1.0)
# We will apply the channel to any Y-gate on qubit 0. Meaning,
# for each Y-gate on our qubit, the qubit will have a `1.0`
# probability of decaying into a mixed state.
noise.add_channel('y', [0], depolarization_channel)
noise.add_channel('y', [0], depolarization)

# Now we may define our simple kernel function and allocate
# a qubit to it.
Expand Down

0 comments on commit 83d161e

Please sign in to comment.