Skip to content

Commit 109ed03

Browse files
Cleaned up latex and docs rendering. (#585)
1 parent c46a2ef commit 109ed03

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

scripts/build_docs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ def main(unused_argv):
7373
"check_commutability", "kwargs_cartesian_product",
7474
"random_circuit_resolver_batch", "random_pauli_sums",
7575
"random_symbol_circuit", "random_symbol_circuit_resolver_batch"
76+
],
77+
"tfq.math": ["fidelity_op", "inner_product_op"],
78+
"tfq.noise": [
79+
"noisy_expectation_op", "noisy_sampled_expectation_op",
80+
"noisy_samples_op"
7681
]
7782
})
7883

tensorflow_quantum/core/ops/math_ops/fidelity_op.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def fidelity(programs, symbol_names, symbol_values, other_programs):
2525
the symbol free comparison circuits.
2626
2727
Calculates out[i][j] = $ | \langle \psi_{\text{programs[i]}} \\
28-
(\text{symbol_values[i]}) | \psi_{\text{other_programs[j]}} \rangle \\
29-
|^2 $
28+
(\text{symbol\_values[i]}) | \psi_{\text{other\_programs[j]}} \rangle \\
29+
|^2 $
3030
3131
3232
>>> symbols = sympy.symbols('alpha beta')

tensorflow_quantum/core/ops/math_ops/inner_product_op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def inner_product(programs, symbol_names, symbol_values, other_programs):
7676
the symbol free comparison circuits.
7777
7878
Calculates out[i][j] = $ \langle \psi_{\text{programs[i]}} \\
79-
(\text{symbol_values[i]}) | \psi_{\text{other_programs[j]}} \rangle $
79+
(\text{symbol\_values[i]}) | \psi_{\text{other\_programs[j]}} \rangle $
8080
8181
8282
>>> symbols = sympy.symbols('alpha beta')

0 commit comments

Comments
 (0)