qsim:: Cirq:: CCX

#include <gates_cirq.h>

The (exponent = 1, global_shift = 0) instance of CCXPowGate .

Summary

This is the canonical doubly-controlled X gate (the TOFFOLI gate).

Public static attributes

kind = kCCX
constexpr GateKind
name = "CCX"[]
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)
GateCirq < fp_type >

Public static attributes

kind

constexpr GateKind qsim::Cirq::CCX::kind = kCCX

name

constexpr char qsim::Cirq::CCX::name[] = "CCX"

num_qubits

constexpr unsigned qsim::Cirq::CCX::num_qubits = 3

pi

constexpr fp_type qsim::Cirq::CCX::pi = static_cast(pi_double)

symmetric

constexpr bool qsim::Cirq::CCX::symmetric = false

Public static functions

Create

GateCirq< fp_type > qsim::Cirq::CCX::Create(
  unsigned time,
  unsigned q0,
  unsigned q1,
  unsigned q2
)