qsim::
Gate
#include <gate.h>
A generic gate to make it easier to use qsim with external gate sets.
Summary
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
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-04-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-04-29 UTC."],[],[]]