qsim:: Cirq:: TwoQubitDiagonalGate

#include <gates_cirq.h>

A two-qubit diagonal gate.

Summary

Public static attributes

kind = kTwoQubitDiagonalGate
constexpr GateKind
name = "TwoQubitDiagonalGate"[]
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, const std::vector< fp_type > & angles)
GateCirq < fp_type >

Public static attributes

kind

constexpr GateKind qsim::Cirq::TwoQubitDiagonalGate::kind = kTwoQubitDiagonalGate

name

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

num_qubits

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

pi

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

symmetric

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

Public static functions

Create

GateCirq< fp_type > qsim::Cirq::TwoQubitDiagonalGate::Create(
  unsigned time,
  unsigned q0,
  unsigned q1,
  const std::vector< fp_type > & angles
)