Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

Module: tfq.layers

View source on GitHub

Module definitions for tensorflow_quantum.python.layers.*

Classes

class AddCircuit: A layer that pre/appends a sequence of gates to the input circuit tensor.

class ControlledPQC: Controlled Parametrized Quantum Circuit (PQC) Layer.

class Expectation: A Layer that calculates an expectation value.

class PQC: Parametrized Quantum Circuit (PQC) Layer.

class Sample: A Layer that samples from a quantum circuit.

class SampledExpectation: A layer that calculates a sampled expectation value.

class State: A Layer that simulates a quantum state.