Quantum++
v1.2
A modern C++11 quantum computing library
|
Functions | |
constexpr cplx | operator"" _i (unsigned long long int x) noexcept |
User-defined literal for complex ![]() | |
template<char... Bits> | |
ket | operator"" _ket () |
Multi-partite qubit ket user-defined literal. More... | |
template<char... Bits> | |
bra | operator"" _bra () |
Multi-partite qubit bra user-defined literal. More... | |
template<char... Bits> | |
cmat | operator"" _prj () |
Multi-partite qubit projector user-defined literal. More... | |
bra qpp::literals::operator"" _bra | ( | ) |
Multi-partite qubit bra user-defined literal.
Constructs the multi-partite qubit bra
Bits | String of binary numbers representing the qubit bra |
|
inlinenoexcept |
User-defined literal for complex (integer overload)
Example:
ket qpp::literals::operator"" _ket | ( | ) |
Multi-partite qubit ket user-defined literal.
Constructs the multi-partite qubit ket
Bits | String of binary numbers representing the qubit ket |
cmat qpp::literals::operator"" _prj | ( | ) |
Multi-partite qubit projector user-defined literal.
Constructs the multi-partite qubit projector (in the computational basis)
Bits | String of binary numbers representing the qubit state to project on |