Module: tfq.math
Stay organized with collections
Save and categorize content based on your preferences.
Module for tfq.core.ops.math_ops.*
Modules
simulate_mps
module: Module to register MPS simulation ops.
Functions
fidelity(...)
: Calculate the fidelity between circuits.
inner_product(...)
: Calculate the inner product between circuits.
mps_1d_expectation(...)
: Calculate the expectation value of circuits wrt some operator(s)
mps_1d_sample(...)
: Generate samples using the C++ MPS simulator.
mps_1d_sampled_expectation(...)
: Calculate the expectation value of circuits using samples.
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.
[null,null,["Last updated 2024-05-17 UTC."],[],[],null,["# Module: tfq.math\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/quantum/blob/v0.7.3/tensorflow_quantum/core/ops/math_ops/__init__.py) |\n\nModule for tfq.core.ops.math_ops.\\*\n\nModules\n-------\n\n[`simulate_mps`](../tfq/math/simulate_mps) module: Module to register MPS simulation ops.\n\nFunctions\n---------\n\n[`fidelity(...)`](../tfq/math/fidelity): Calculate the fidelity between circuits.\n\n[`inner_product(...)`](../tfq/math/inner_product): Calculate the inner product between circuits.\n\n[`mps_1d_expectation(...)`](../tfq/math/mps_1d_expectation): Calculate the expectation value of circuits wrt some operator(s)\n\n[`mps_1d_sample(...)`](../tfq/math/mps_1d_sample): Generate samples using the C++ MPS simulator.\n\n[`mps_1d_sampled_expectation(...)`](../tfq/math/mps_1d_sampled_expectation): Calculate the expectation value of circuits using samples."]]