qsim:: GateCP

#include <gates_qsim.h>

The controlled phase gate.

Summary

A generalized version of GateCZ .

Public static attributes

kind = kGateCP
constexpr GateKind
name = "cp"[]
constexpr char
num_qubits = 2
constexpr unsigned
symmetric = true
constexpr bool

Public static functions

Create (unsigned time, unsigned q0, unsigned q1, fp_type phi)
GateQSim < fp_type >
SchmidtDecomp (fp_type phi)
schmidt_decomp_type< fp_type >

Public static attributes

kind

constexpr GateKind qsim::GateCP::kind = kGateCP

name

constexpr char qsim::GateCP::name[] = "cp"

num_qubits

constexpr unsigned qsim::GateCP::num_qubits = 2

symmetric

constexpr bool qsim::GateCP::symmetric = true

Public static functions

Create

GateQSim< fp_type > qsim::GateCP::Create(
  unsigned time,
  unsigned q0,
  unsigned q1,
  fp_type phi
)

SchmidtDecomp

schmidt_decomp_type< fp_type > qsim::GateCP::SchmidtDecomp(
  fp_type phi
)