qsim::
unitary::
UnitarySpaceBasic
#include <unitaryspace_basic.h>
Object containing context and routines for unitary manipulations.
Summary
Unitary is a non-vectorized sequence of one real amplitude followed by one imaginary amplitude.
Inheritance
Inherits from:
qsim::unitary::UnitarySpace< UnitarySpaceBasic< For, FP >, For, FP >
Public types
|
Unitary
|
using
typename Base::Unitary
|
fp_type
|
using
typename Base::fp_type
|
Public static functions
|
GetEntry
(const Unitary & state, uint64_t i, uint64_t j)
|
std::complex< fp_type >
|
MinRowSize
(unsigned num_qubits)
|
uint64_t
|
MinSize
(unsigned num_qubits)
|
uint64_t
|
SetEntry
(Unitary & state, uint64_t i, uint64_t j, const std::complex< fp_type > & ampl)
|
void
|
SetEntry
(Unitary & state, uint64_t i, uint64_t j, fp_type re, fp_type im)
|
void
|
Public types
Unitary
typename Base::Unitary qsim::unitary::UnitarySpaceBasic::Unitary
fp_type
typename Base::fp_type qsim::unitary::UnitarySpaceBasic::fp_type
Public functions
SetAllZeros
void qsim::unitary::UnitarySpaceBasic::SetAllZeros(
Unitary & state
) const
SetIdentity
void qsim::unitary::UnitarySpaceBasic::SetIdentity(
Unitary & state
)
UnitarySpaceBasic
qsim::unitary::UnitarySpaceBasic::UnitarySpaceBasic(
ForArgs &&... args
)
Public static functions
GetEntry
std::complex< fp_type > qsim::unitary::UnitarySpaceBasic::GetEntry(
const Unitary & state,
uint64_t i,
uint64_t j
)
MinRowSize
uint64_t qsim::unitary::UnitarySpaceBasic::MinRowSize(
unsigned num_qubits
)
MinSize
uint64_t qsim::unitary::UnitarySpaceBasic::MinSize(
unsigned num_qubits
)
SetEntry
void qsim::unitary::UnitarySpaceBasic::SetEntry(
Unitary & state,
uint64_t i,
uint64_t j,
const std::complex< fp_type > & ampl
)
SetEntry
void qsim::unitary::UnitarySpaceBasic::SetEntry(
Unitary & state,
uint64_t i,
uint64_t j,
fp_type re,
fp_type im
)
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.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "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."],[],[]]