Skip to content

Commit

Permalink
fix the wrong gate name
Browse files Browse the repository at this point in the history
The H gate is named SNOT in the current version. At some point we should support both name. This will be much easier after the refactor of the gate representation.
  • Loading branch information
BoxiLi committed May 13, 2021
1 parent 5f92c56 commit 54ea969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/qip-basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ An example code for plotting the example quantum circuit from above is given:
# create the quantum circuit
qc = QubitCircuit(2, num_cbits=1)
qc.add_gate("CNOT", controls=0, targets=1)
qc.add_gate("H", targets=1)
qc.add_gate("SNOT", targets=1)
qc.add_gate("ISWAP", targets=[0,1])
qc.add_measurement("M0", targets=1, classical_store=0)
# plot the quantum circuit
Expand Down

0 comments on commit 54ea969

Please sign in to comment.