Quantum++  v0.8.8
C++11 quantum computing library
qpp::States Class Referencefinal

const Singleton class that implements most commonly used states More...

#include <classes/states.h>

Inheritance diagram for qpp::States:
Collaboration diagram for qpp::States:

Public Attributes

ket x0 {ket::Zero(2)}
 Pauli Sigma-X 0-eigenstate |+> More...
 
ket x1 {ket::Zero(2)}
 Pauli Sigma-X 1-eigenstate |-> More...
 
ket y0 {ket::Zero(2)}
 Pauli Sigma-Y 0-eigenstate |y+> More...
 
ket y1 {ket::Zero(2)}
 Pauli Sigma-Y 1-eigenstate |y-> More...
 
ket z0 {ket::Zero(2)}
 Pauli Sigma-Z 0-eigenstate |0> More...
 
ket z1 {ket::Zero(2)}
 Pauli Sigma-Z 1-eigenstate |1> More...
 
cmat px0 {cmat::Zero(2, 2)}
 Projector onto the Pauli Sigma-X 0-eigenstate |+><+|. More...
 
cmat px1 {cmat::Zero(2, 2)}
 Projector onto the Pauli Sigma-X 1-eigenstate |-><-|. More...
 
cmat py0 {cmat::Zero(2, 2)}
 Projector onto the Pauli Sigma-Y 0-eigenstate |y+><y+|. More...
 
cmat py1 {cmat::Zero(2, 2)}
 Projector onto the Pauli Sigma-Y 1-eigenstate |y-><y-|. More...
 
cmat pz0 {cmat::Zero(2, 2)}
 Projector onto the Pauli Sigma-Z 0-eigenstate |0><0|. More...
 
cmat pz1 {cmat::Zero(2, 2)}
 Projector onto the Pauli Sigma-Z 1-eigenstate |1><1|. More...
 
ket b00 {ket::Zero(4)}
 Bell-00 state (following the convention in Nielsen and Chuang) More...
 
ket b01 {ket::Zero(4)}
 Bell-01 state (following the convention in Nielsen and Chuang) More...
 
ket b10 {ket::Zero(4)}
 Bell-10 state (following the convention in Nielsen and Chuang) More...
 
ket b11 {ket::Zero(4)}
 Bell-11 state (following the convention in Nielsen and Chuang) More...
 
cmat pb00 {cmat::Zero(4, 4)}
 Projector onto the Bell-00 state. More...
 
cmat pb01 {cmat::Zero(4, 4)}
 Projector onto the Bell-01 state. More...
 
cmat pb10 {cmat::Zero(4, 4)}
 Projector onto the Bell-10 state. More...
 
cmat pb11 {cmat::Zero(4, 4)}
 Projector onto the Bell-11 state. More...
 
ket GHZ {ket::Zero(8)}
 GHZ state. More...
 
ket W {ket::Zero(8)}
 W state. More...
 
cmat pGHZ {cmat::Zero(8, 8)}
 Projector onto the GHZ state. More...
 
cmat pW {cmat::Zero(8, 8)}
 Projector onto the W state. More...
 

Private Member Functions

 States ()
 
 ~States ()=default
 Default destructor. More...
 

Friends

class internal::Singleton< const States >
 

Additional Inherited Members

- Static Public Member Functions inherited from qpp::internal::Singleton< const States >
static const Statesget_instance () noexcept(std::is_nothrow_constructible< const States >::value)
 
static const Statesget_thread_local_instance () noexcept(std::is_nothrow_constructible< const States >::value)
 
- Protected Member Functions inherited from qpp::internal::Singleton< const States >
 Singleton () noexcept=default
 
 Singleton (const Singleton &)=delete
 
Singletonoperator= (const Singleton &)=delete
 
virtual ~Singleton ()=default
 

Detailed Description

const Singleton class that implements most commonly used states

Constructor & Destructor Documentation

qpp::States::States ( )
inlineprivate

Initialize the states

qpp::States::~States ( )
privatedefault

Default destructor.

Friends And Related Function Documentation

friend class internal::Singleton< const States >
friend

Member Data Documentation

ket qpp::States::b00 {ket::Zero(4)}

Bell-00 state (following the convention in Nielsen and Chuang)

ket qpp::States::b01 {ket::Zero(4)}

Bell-01 state (following the convention in Nielsen and Chuang)

ket qpp::States::b10 {ket::Zero(4)}

Bell-10 state (following the convention in Nielsen and Chuang)

ket qpp::States::b11 {ket::Zero(4)}

Bell-11 state (following the convention in Nielsen and Chuang)

ket qpp::States::GHZ {ket::Zero(8)}

GHZ state.

cmat qpp::States::pb00 {cmat::Zero(4, 4)}

Projector onto the Bell-00 state.

cmat qpp::States::pb01 {cmat::Zero(4, 4)}

Projector onto the Bell-01 state.

cmat qpp::States::pb10 {cmat::Zero(4, 4)}

Projector onto the Bell-10 state.

cmat qpp::States::pb11 {cmat::Zero(4, 4)}

Projector onto the Bell-11 state.

cmat qpp::States::pGHZ {cmat::Zero(8, 8)}

Projector onto the GHZ state.

cmat qpp::States::pW {cmat::Zero(8, 8)}

Projector onto the W state.

cmat qpp::States::px0 {cmat::Zero(2, 2)}

Projector onto the Pauli Sigma-X 0-eigenstate |+><+|.

cmat qpp::States::px1 {cmat::Zero(2, 2)}

Projector onto the Pauli Sigma-X 1-eigenstate |-><-|.

cmat qpp::States::py0 {cmat::Zero(2, 2)}

Projector onto the Pauli Sigma-Y 0-eigenstate |y+><y+|.

cmat qpp::States::py1 {cmat::Zero(2, 2)}

Projector onto the Pauli Sigma-Y 1-eigenstate |y-><y-|.

cmat qpp::States::pz0 {cmat::Zero(2, 2)}

Projector onto the Pauli Sigma-Z 0-eigenstate |0><0|.

cmat qpp::States::pz1 {cmat::Zero(2, 2)}

Projector onto the Pauli Sigma-Z 1-eigenstate |1><1|.

ket qpp::States::W {ket::Zero(8)}

W state.

ket qpp::States::x0 {ket::Zero(2)}

Pauli Sigma-X 0-eigenstate |+>

ket qpp::States::x1 {ket::Zero(2)}

Pauli Sigma-X 1-eigenstate |->

ket qpp::States::y0 {ket::Zero(2)}

Pauli Sigma-Y 0-eigenstate |y+>

ket qpp::States::y1 {ket::Zero(2)}

Pauli Sigma-Y 1-eigenstate |y->

ket qpp::States::z0 {ket::Zero(2)}

Pauli Sigma-Z 0-eigenstate |0>

ket qpp::States::z1 {ket::Zero(2)}

Pauli Sigma-Z 1-eigenstate |1>


The documentation for this class was generated from the following file: