Skip to content

Commit

Permalink
Update doc/source/code-examples/advancedexamples.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Renato Mello <[email protected]>
  • Loading branch information
csookim and renatomello authored Dec 11, 2024
1 parent b71d9ab commit 7fd6d35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/source/code-examples/advancedexamples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fd6d35

Please sign in to comment.