qsim::Cirq::riswap

#include <gates_cirq.h>

The (exponent = 2*phi/pi, global_shift = 0) instance of ISwapPowGate.

Summary

This is a generalization of the ISWAP gate with a fixed global phase of zero. This is a function in Cirq.

Public static attributes

h = static_cast(h_double)
constexpr fp_type
kind = kriswap
constexpr GateKind
name = "riswap"[]
constexpr char
num_qubits = 2
constexpr unsigned
pi = static_cast(pi_double)
constexpr fp_type
symmetric = true
constexpr bool

Public static functions

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

Public static attributes

h

constexpr fp_type qsim::Cirq::riswap::h = static_cast(h_double)

kind

constexpr GateKind qsim::Cirq::riswap::kind = kriswap

name

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

num_qubits

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

pi

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

symmetric

constexpr bool qsim::Cirq::riswap::symmetric = true

Public static functions

Create

GateCirq< fp_type > qsim::Cirq::riswap::Create(
  unsigned time,
  unsigned q0,
  unsigned q1,
  fp_type phi
)

SchmidtDecomp

schmidt_decomp_type< fp_type > qsim::Cirq::riswap::SchmidtDecomp(
  fp_type phi
)