summaryrefslogtreecommitdiffhomepage
path: root/qsharp.html.markdown
diff options
context:
space:
mode:
authorMarcel Ribeiro Dantas <ribeirodantasdm@gmail.com>2022-06-27 00:28:16 +0200
committerGitHub <noreply@github.com>2022-06-27 00:28:16 +0200
commit5d133e847846b4c8d436f7a567674c2e1df35a13 (patch)
tree7ebc7704f02ceef195a8896a80a06ed81cc12585 /qsharp.html.markdown
parent27f7f03401ff747a61a912fdf73549b1788b13e1 (diff)
parent8f28c8021b8ce3cb791861ad19c41e12228d8bcd (diff)
Merge branch 'master' into patch-1
Diffstat (limited to 'qsharp.html.markdown')
-rw-r--r--qsharp.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/qsharp.html.markdown b/qsharp.html.markdown
index b256043c..10015d7f 100644
--- a/qsharp.html.markdown
+++ b/qsharp.html.markdown
@@ -29,10 +29,10 @@ using (qs = Qubit[2]) {
// If you want to change the state of a qubit
// you have to do this by applying quantum gates to the qubit.
- H(q[0]); // This changes the state of the first qubit
+ H(qs[0]); // This changes the state of the first qubit
// from |0⟩ (the initial state of allocated qubits)
// to (|0⟩ + |1⟩) / sqrt(2).
- // q[1] = |1⟩; - this does NOT work, you have to manipulate a qubit by using gates.
+ // qs[1] = |1⟩; - this does NOT work, you have to manipulate a qubit by using gates.
// You can apply multi-qubit gates to several qubits.
CNOT(qs[0], qs[1]);