From 83d161ef28509e8cd2896ead01a77b855f140bec Mon Sep 17 00:00:00 2001 From: "A.M. Santana" Date: Mon, 7 Aug 2023 15:49:56 +0000 Subject: [PATCH] name updates Signed-off-by: A.M. Santana --- docs/sphinx/examples/python/noise_bit_flip.py | 4 ++-- docs/sphinx/examples/python/noise_depolarization.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/sphinx/examples/python/noise_bit_flip.py b/docs/sphinx/examples/python/noise_bit_flip.py index c98a74d4573..25d6f3c45d9 100644 --- a/docs/sphinx/examples/python/noise_bit_flip.py +++ b/docs/sphinx/examples/python/noise_bit_flip.py @@ -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. diff --git a/docs/sphinx/examples/python/noise_depolarization.py b/docs/sphinx/examples/python/noise_depolarization.py index ce153f45a4c..af5701c5cf3 100644 --- a/docs/sphinx/examples/python/noise_depolarization.py +++ b/docs/sphinx/examples/python/noise_depolarization.py @@ -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.