@@ -28,6 +28,11 @@ def mps_1d_expectation(programs,
28
28
bond_dim = 4 ):
29
29
"""Calculate the expectation value of circuits wrt some operator(s)
30
30
31
+ Simulate the final state of `programs` given `symbol_values` are placed
32
+ inside of the symbols with the name in `symbol_names` in each circuit.
33
+ From there we will then compute the expectation values of `pauli_sums`
34
+ on the final states. Note that this op requires 1D non periodic circuits.
35
+
31
36
Args:
32
37
programs: `tf.Tensor` of strings with shape [batch_size] containing
33
38
the string representations of the circuits to be executed.
@@ -67,7 +72,8 @@ def mps_1d_sample(programs,
67
72
68
73
Simulate the final state of `programs` given `symbol_values` are placed
69
74
inside of the symbols with the name in `symbol_names` in each circuit.
70
- From there we will then sample from the final state.
75
+ From there we will then sample from the final state. Note that this op
76
+ requires 1D non periodic circuits.
71
77
72
78
Args:
73
79
programs: `tf.Tensor` of strings with shape [batch_size] containing
@@ -109,7 +115,8 @@ def mps_1d_sampled_expectation(programs,
109
115
Simulate the final state of `programs` given `symbol_values` are placed
110
116
inside of the symbols with the name in `symbol_names` in each circuit.
111
117
Them, sample the resulting state `num_samples` times and use these samples
112
- to compute expectation values of the given `pauli_sums`.
118
+ to compute expectation values of the given `pauli_sums`. Note that this op
119
+ requires 1D non periodic circuits.
113
120
114
121
Args:
115
122
programs: `tf.Tensor` of strings with shape [batch_size] containing
0 commit comments