qsim:: Gate

#include <gate.h>

A generic gate to make it easier to use qsim with external gate sets.

Summary

Public types

GateKind using
GK
fp_type using
FP

Public attributes

cmask
uint64_t
controlled_by
std::vector< unsigned >
kind
GateKind
matrix
Matrix< fp_type >
params
std::vector< fp_type >
qubits
std::vector< unsigned >
swapped
bool
time
unsigned
unfusible
bool

Public functions

ControlledBy (Qubits && controlled_by)
ControlledBy (Qubits && controlled_by, const std::vector< unsigned > & control_values)

Public types

GateKind

GK qsim::Gate::GateKind

fp_type

FP qsim::Gate::fp_type

Public attributes

cmask

uint64_t qsim::Gate::cmask

controlled_by

std::vector< unsigned > qsim::Gate::controlled_by

kind

GateKind qsim::Gate::kind

matrix

Matrix< fp_type > qsim::Gate::matrix

params

std::vector< fp_type > qsim::Gate::params

qubits

std::vector< unsigned > qsim::Gate::qubits

swapped

bool qsim::Gate::swapped

time

unsigned qsim::Gate::time

unfusible

bool qsim::Gate::unfusible

Public functions

ControlledBy

Gate && qsim::Gate::ControlledBy(
  Qubits && controlled_by
)

ControlledBy

Gate && qsim::Gate::ControlledBy(
  Qubits && controlled_by,
  const std::vector< unsigned > & control_values
)