qsim:: Cirq:: CXPowGate

#include <gates_cirq.h>

A gate that applies a controlled power of an X gate.

Summary

This is a generalization of the CX (or CNOT) gate.

Public static attributes

kind = kCXPowGate
constexpr GateKind
name = "CXPowGate"[]
constexpr char
num_qubits = 2
constexpr unsigned
pi = static_cast (pi_double)
constexpr fp_type
symmetric = false
constexpr bool

Public static functions

Create (unsigned time, unsigned q0, unsigned q1, fp_type exponent, fp_type global_shift)
GateCirq < fp_type >
SchmidtDecomp (fp_type exponent, fp_type global_shift)
schmidt_decomp_type< fp_type >

Public static attributes

kind

constexpr GateKind qsim::Cirq::CXPowGate::kind = kCXPowGate

name

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

num_qubits

constexpr unsigned qsim::Cirq::CXPowGate::num_qubits = 2

pi

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

symmetric

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

Public static functions

Create

GateCirq< fp_type > qsim::Cirq::CXPowGate::Create(
  unsigned time,
  unsigned q0,
  unsigned q1,
  fp_type exponent,
  fp_type global_shift
)

SchmidtDecomp

schmidt_decomp_type< fp_type > qsim::Cirq::CXPowGate::SchmidtDecomp(
  fp_type exponent,
  fp_type global_shift
)