<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/quantum/blob/v0.7.6/tensorflow_quantum/python/util.py) |

A collection of helper functions which are useful in places in TFQ.

## Functions

[`exponential(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/util/exponential): Return a Cirq circuit with exponential operator forms.

[`gate_approx_eq(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/util/gate_approx_eq): Compares gates in the allowed TFQ gate set.

[`get_circuit_symbols(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/util/get_circuit_symbols): Returns a list of the sympy.Symbols that are present in `circuit`.

[`get_supported_channels(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/util/get_supported_channels): A helper to get the channels that are supported in TFQ.

[`get_supported_gates(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/util/get_supported_gates): A helper to get gates supported by TFQ.