diff --git a/doc/source/code-examples/advancedexamples.rst b/doc/source/code-examples/advancedexamples.rst index 6025d4bede..b718857272 100644 --- a/doc/source/code-examples/advancedexamples.rst +++ b/doc/source/code-examples/advancedexamples.rst @@ -2228,8 +2228,8 @@ on a star-shaped hardware connectivity and a custom set of native gates. return chip # Define a custom set of native gates - glist = [gates.GPI2, gates.RZ, gates.Z, gates.CZ] - natives = NativeGates(0).from_gatelist(glist) + gate_list = [gates.GPI2, gates.RZ, gates.Z, gates.CZ] + natives = NativeGates(0).from_gatelist(gate_list) # Create a quantum circuit with 5 qubits # Define the hardware qubit names to be used in wire_names