openfermion.circuits.FSWAP
The FSWAP gate, possibly raised to a power.
openfermion.circuits.FSWAP(
*qubits, **kwargs
)
FSwapPowGate()**t = FSwapPowGate(exponent=t) and acts on two qubits in the
computational basis as the matrix:
[[1, 0, 0, 0],
[0, g·c, -i·g·s, 0],
[0, -i·g·s, g·c, 0],
[0, 0, 0, p]]
where:
c = cos(π·t/2)
s = sin(π·t/2)
g = exp(i·π·t/2)
p = exp(i·π·t).
openfermion.FSWAP
is an instance of this gate at exponent=1. It swaps
adjacent fermionic modes under the Jordan-Wigner Transform.
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-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]