qsim::
Cirq::
CSwapGate
#include <gates_cirq.h>
A controlled swap gate (the Fredkin gate).
Summary
Public static attributes
|
kind
= kCSwapGate
|
constexpr GateKind
|
name
= "CSwapGate"[]
|
constexpr char
|
num_qubits
= 3
|
constexpr unsigned
|
pi
= static_cast
(pi_double)
|
constexpr fp_type
|
symmetric
= false
|
constexpr bool
|
Public static functions
|
Create
(unsigned time, unsigned q0, unsigned q1, unsigned q2)
|
|
Public static attributes
kind
constexpr GateKind qsim::Cirq::CSwapGate::kind = kCSwapGate
name
constexpr char qsim::Cirq::CSwapGate::name[] = "CSwapGate"
num_qubits
constexpr unsigned qsim::Cirq::CSwapGate::num_qubits = 3
pi
constexpr fp_type qsim::Cirq::CSwapGate::pi = static_cast(pi_double)
symmetric
constexpr bool qsim::Cirq::CSwapGate::symmetric = false
Public static functions
Create
GateCirq< fp_type > qsim::Cirq::CSwapGate::Create(
unsigned time,
unsigned q0,
unsigned q1,
unsigned q2
)