Save the date! Google I/O returns May 18-20 Register now

Module: tfq.layers

Module definitions for tensorflow_quantum.python.layers.*


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.

class Unitary: A Layer that calculates unitary matrices of circuits.