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 NoisyControlledPQC: Noisy Controlled Parametrized Quantum Circuit (PQC) Layer.

class NoisyPQC: Noisy Parametrized Quantum Circuit (PQC) Layer.

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年05月17日 UTC.