Skip to content

Commit

Permalink
Cleaned up latex and docs rendering. (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBroughton authored Jun 4, 2021
1 parent c46a2ef commit 109ed03
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions scripts/build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ def main(unused_argv):
"check_commutability", "kwargs_cartesian_product",
"random_circuit_resolver_batch", "random_pauli_sums",
"random_symbol_circuit", "random_symbol_circuit_resolver_batch"
],
"tfq.math": ["fidelity_op", "inner_product_op"],
"tfq.noise": [
"noisy_expectation_op", "noisy_sampled_expectation_op",
"noisy_samples_op"
]
})

Expand Down
4 changes: 2 additions & 2 deletions tensorflow_quantum/core/ops/math_ops/fidelity_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def fidelity(programs, symbol_names, symbol_values, other_programs):
the symbol free comparison circuits.
Calculates out[i][j] = $ | \langle \psi_{\text{programs[i]}} \\
(\text{symbol_values[i]}) | \psi_{\text{other_programs[j]}} \rangle \\
|^2 $
(\text{symbol\_values[i]}) | \psi_{\text{other\_programs[j]}} \rangle \\
|^2 $
>>> symbols = sympy.symbols('alpha beta')
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_quantum/core/ops/math_ops/inner_product_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def inner_product(programs, symbol_names, symbol_values, other_programs):
the symbol free comparison circuits.
Calculates out[i][j] = $ \langle \psi_{\text{programs[i]}} \\
(\text{symbol_values[i]}) | \psi_{\text{other_programs[j]}} \rangle $
(\text{symbol\_values[i]}) | \psi_{\text{other\_programs[j]}} \rangle $
>>> symbols = sympy.symbols('alpha beta')
Expand Down

0 comments on commit 109ed03

Please sign in to comment.