Skip to content

Commit

Permalink
fix: eq circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
changsookim committed Nov 30, 2024
1 parent da15138 commit 6321b3c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions doc/source/code-examples/advancedexamples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,10 @@ Users can specify the hardware qubits to be used by setting the ``wire_names``.
circuit.wire_names = ["C", "A", "B", "D"]
# This is equivalent to:
# circuit = Circuit(4)
# circuit.add(gates.H("C"))
# circuit.add(gates.CNOT("C", "A"))
# circuit.add(gates.CZ("C", "B"))
# circuit.add(gates.M("B", "D"))
# H gate on qubit "C"
# CNOT gate on qubits "C" and "A"
# CZ gate on qubits "C" and "B"
# M gate on qubit "B" and "D"
For example, if the user sets ``wire_names`` to ``["C", "A", "B", "D"]``,
it means that the first qubit in the circuit is mapped to the physical qubit named ``C``,
Expand Down

0 comments on commit 6321b3c

Please sign in to comment.