Quantum++
v1.0-rc3
A modern C++11 quantum computing library
|
const Singleton class that defines quantum error correcting codes More...
#include <classes/codes.h>
Public Types | |
enum | Type { Type::FIVE_QUBIT = 1, Type::SEVEN_QUBIT_STEANE, Type::NINE_QUBIT_SHOR } |
Code types, add more codes here if needed. More... | |
Public Member Functions | |
ket | codeword (Type type, idx i) const |
Returns the codeword of the specified code type. More... | |
Private Member Functions | |
Codes () | |
Default constructor. More... | |
~Codes ()=default | |
Default destructor. More... | |
Friends | |
class | internal::Singleton< const Codes > |
Additional Inherited Members | |
![]() | |
static const Codes & | get_instance () noexcept(std::is_nothrow_constructible< const Codes >::value) |
static const Codes & | get_thread_local_instance () noexcept(std::is_nothrow_constructible< const Codes >::value) |
![]() | |
Singleton () noexcept=default | |
Singleton (const Singleton &)=delete | |
Singleton & | operator= (const Singleton &)=delete |
virtual | ~Singleton ()=default |
const Singleton class that defines quantum error correcting codes
|
strong |
Code types, add more codes here if needed.
Enumerator | |
---|---|
FIVE_QUBIT | [[5,1,3]] qubit code |
SEVEN_QUBIT_STEANE | [[7,1,3]] Steane qubit code |
NINE_QUBIT_SHOR | [[9,1,3]] Shor qubit code |
|
inlineprivate |
Default constructor.
|
privatedefault |
Default destructor.
Returns the codeword of the specified code type.
type | Code type |
i | Codeword index |
|
friend |