qsim::
Cirq::
SWAP
#include <gates_cirq.h>
The
(exponent = 1, global_shift = 0)
instance of
SwapPowGate
.
Summary
This is the canonical SWAP gate.
Public static attributes |
|
---|---|
is2
= static_cast
|
constexpr fp_type
|
kind
= kSWAP
|
constexpr GateKind
|
name
= "SWAP"[]
|
constexpr char
|
num_qubits
= 2
|
constexpr unsigned
|
symmetric
= true
|
constexpr bool
|
Public static functions |
|
---|---|
Create
(unsigned time, unsigned q0, unsigned q1)
|
GateCirq
< fp_type >
|
SchmidtDecomp
()
|
schmidt_decomp_type< fp_type >
|
Public static attributes
is2
constexpr fp_type qsim::Cirq::SWAP::is2 = static_cast(is2_double)
kind
constexpr GateKind qsim::Cirq::SWAP::kind = kSWAP
name
constexpr char qsim::Cirq::SWAP::name[] = "SWAP"
num_qubits
constexpr unsigned qsim::Cirq::SWAP::num_qubits = 2
symmetric
constexpr bool qsim::Cirq::SWAP::symmetric = true
Public static functions
SchmidtDecomp
schmidt_decomp_type< fp_type > qsim::Cirq::SWAP::SchmidtDecomp()