<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/__init__.py) |

Module functions for tensorflow_quantum.\*

## Modules

[`datasets`](https://www.tensorflow.org/quantum/api_docs/python/tfq/datasets) module: Experimental location for interesting quantum datasets.

[`differentiators`](https://www.tensorflow.org/quantum/api_docs/python/tfq/differentiators) module: Module functions for tfq.differentiators.\*

[`layers`](https://www.tensorflow.org/quantum/api_docs/python/tfq/layers) module: Module definitions for tensorflow_quantum.python.layers.\*

[`math`](https://www.tensorflow.org/quantum/api_docs/python/tfq/math) module: Module for tfq.core.ops.math_ops.\*

[`noise`](https://www.tensorflow.org/quantum/api_docs/python/tfq/noise) module: Module for tfq.core.ops.noise.\*

[`optimizers`](https://www.tensorflow.org/quantum/api_docs/python/tfq/optimizers) module: Module definitions for tensorflow_quantum.python.optimizers.\*

[`util`](https://www.tensorflow.org/quantum/api_docs/python/tfq/util) module: A collection of helper functions which are useful in places in TFQ.

## Functions

[`append_circuit(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/append_circuit): Merge programs in the input tensors.

[`convert_to_tensor(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/convert_to_tensor): Convert lists of tfq supported primitives to tensor representations.

[`from_tensor(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/from_tensor): Convert a tensor of tfq primitives back to Python objects.

[`get_expectation_op(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/get_expectation_op): Get a TensorFlow op that will calculate batches of expectation values.

[`get_quantum_concurrent_op_mode(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/get_quantum_concurrent_op_mode): Get the global op latency mode from execution context.

[`get_sampled_expectation_op(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/get_sampled_expectation_op): Get a TensorFlow op that will calculate sampled expectation values.

[`get_sampling_op(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/get_sampling_op): Get a Tensorflow op that produces samples from given quantum circuits.

[`get_state_op(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/get_state_op): Get a TensorFlow op that produces states from given quantum circuits.

[`get_unitary_op(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/get_unitary_op): Get an op that calculates the unitary matrix for the given circuits.

[`padded_to_ragged(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/padded_to_ragged): Utility [`tf.function`](https://www.tensorflow.org/api_docs/python/tf/function) that converts a padded tensor to ragged.

[`padded_to_ragged2d(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/padded_to_ragged2d): Utility [`tf.function`](https://www.tensorflow.org/api_docs/python/tf/function) that converts a 2d padded tensor to ragged.

[`resolve_parameters(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/resolve_parameters): Replace symbols in a batch of programs with concrete values.

[`set_quantum_concurrent_op_mode(...)`](https://www.tensorflow.org/quantum/api_docs/python/tfq/set_quantum_concurrent_op_mode): Set the global op latency mode in execution context.

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| **version** | `'0.7.6'` |

<br />