You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/source/whitepaper/6-4-quoperator.ipynb
+15-15
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,8 @@
21
21
"id": "e3c0a239",
22
22
"metadata": {},
23
23
"source": [
24
-
"`tensorcircuit.quantum.QuOperator`, `tensorcircuit.quantum.QuVector` and `tensorcircuit.quantum.QuAdjointVector` are classes adopted from TensorNetwork package.\n",
25
-
"They behave like a matrix/vector (column or row) when interacting with other ingredients while the inner structure is maintained by the tensornetwork for efficiency and compactness.\n",
24
+
"`tensorcircuit.quantum.QuOperator`, `tensorcircuit.quantum.QuVector` and `tensorcircuit.quantum.QuAdjointVector` are classes adopted from the TensorNetwork package.\n",
25
+
"They behave like a matrix/vector (column or row) when interacting with other ingredients while the inner structure is maintained by the TensorNetwork for efficiency and compactness.\n",
26
26
"\n",
27
27
"Typical tensor network structures for a QuOperator/QuVector correspond to Matrix Product Operators (MPO) / Matrix Product States (MPS). The former represents a matrix as:\n",
"# or we can have more matrix/vectorlike operation\n",
393
+
"# or we can have more matrix/vector-like operation\n",
394
394
"(3 * nvector).eval_matrix()"
395
395
]
396
396
},
@@ -444,9 +444,9 @@
444
444
"id": "c951ee01",
445
445
"metadata": {},
446
446
"source": [
447
-
"## QuVector as input state for the circuit\n",
447
+
"## QuVector as the Input State for the Circuit\n",
448
448
"\n",
449
-
"Since ``QuVector`` behaves like a real vector with more compact representation, we can feed the circuit input states in the form of ``QuVector`` instead of plain numpy array vector."
449
+
"Since ``QuVector`` behaves like a real vector with a more compact representation, we can feed the circuit input states in the form of ``QuVector`` instead of a plain numpy array vector."
450
450
]
451
451
},
452
452
{
@@ -482,9 +482,9 @@
482
482
"id": "5ccb0dbb",
483
483
"metadata": {},
484
484
"source": [
485
-
"## QuVector as output state of the circuit\n",
485
+
"## QuVector as the Output State of the Circuit\n",
486
486
"\n",
487
-
"The tensor network representation of the circuit can be regarded as a ``QuVector``, namely we can manipulate the circuit as a vector before the real contraction. This is also how we do circuit composition internally."
487
+
"The tensor network representation of the circuit can be regarded as a ``QuVector``, namely we can manipulate the circuit as a vector before the real contraction. This is also how we do circuit composition internally."
488
488
]
489
489
},
490
490
{
@@ -670,7 +670,7 @@
670
670
],
671
671
"source": [
672
672
"# The above is the core internal mechanism for circuit composition\n",
673
-
"# And the user API is as follows\n",
673
+
"# the user API is as follows\n",
674
674
"\n",
675
675
"n = 3\n",
676
676
"c1 = tc.Circuit(n)\n",
@@ -691,9 +691,9 @@
691
691
"id": "5a13c854",
692
692
"metadata": {},
693
693
"source": [
694
-
"## QuOperator as operator to be evaluated on the circuit\n",
694
+
"## QuOperator as Operator to be Evaluated on the Circuit\n",
695
695
"\n",
696
-
"The matrix to be evaluated over the output state of the circuit can also be represented by QuOperator, which is very powerful and efficient for some lattic model Hamiltonian."
696
+
"The matrix to be evaluated over the output state of the circuit can also be represented by QuOperator, which is very powerful and efficient for some lattices model Hamiltonian."
697
697
]
698
698
},
699
699
{
@@ -714,7 +714,7 @@
714
714
}
715
715
],
716
716
"source": [
717
-
"# Here we show a simplest model, where we measure <Z_0Z_1>\n",
717
+
"# Here we show the simplest model, where we measure <Z_0Z_1>\n",
"## QuOperator as the quantum gate applied on the circuit\n",
732
+
"## QuOperator as the Quantum Gate Applied on the Circuit\n",
733
733
"\n",
734
-
"Since quantum gates are also unitary matrix, we can also use QuOperator for quantum gates. In some cases, QuOperator representation for quantum gates is much more compact, such as in multicontrol gate case, where the bond dimension can be reduced to 2 for neighboring qubits."
734
+
"Since quantum gates are also unitary matrices, we can also use QuOperator for quantum gates. In some cases, QuOperator representation for quantum gates is much more compact, such as in multi-control gate case, where the bond dimension can be reduced to 2 for neighboring qubits."
735
735
]
736
736
},
737
737
{
@@ -939,7 +939,7 @@
939
939
}
940
940
],
941
941
"source": [
942
-
"# And the built-in multicontrol gate is used as follows:\n",
942
+
"# the built-in multi-control gate is used as follows:\n",
0 commit comments