qsim:: GateSwap
#include <gates_qsim.h>
The SWAP gate.
Summary
Exchanges two qubits.
Public static attributes |
|
---|---|
is2 = static_cast
|
constexpr fp_type
|
kind = kGateSwap
|
constexpr GateKind
|
name = "sw"[]
|
constexpr char
|
num_qubits = 2
|
constexpr unsigned
|
symmetric = true
|
constexpr bool
|
Public static functions |
|
---|---|
Create(unsigned time, unsigned q0, unsigned q1)
|
GateQSim< fp_type >
|
SchmidtDecomp()
|
schmidt_decomp_type< fp_type >
|
Public static attributes
is2
constexpr fp_type qsim::GateSwap::is2 = static_cast(is2_double)
kind
constexpr GateKind qsim::GateSwap::kind = kGateSwap
name
constexpr char qsim::GateSwap::name[] = "sw"
num_qubits
constexpr unsigned qsim::GateSwap::num_qubits = 2
symmetric
constexpr bool qsim::GateSwap::symmetric = true
Public static functions
Create
GateQSim< fp_type > qsim::GateSwap::Create( unsigned time, unsigned q0, unsigned q1 )
SchmidtDecomp
schmidt_decomp_type< fp_type > qsim::GateSwap::SchmidtDecomp()