const Singleton class that implements most commonly used states
More...
#include <classes/states.h>
|
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...
|
|
const Singleton class that implements most commonly used states
◆ States()
◆ ~States()
◆ jn()
state of n qudits
- Parameters
-
j | Non-negative integer |
n | Non-negative integer |
d | Subsystem dimensions |
- Returns
state of n qudits
◆ mes()
ket qpp::States::mes |
( |
idx |
d = 2 | ) |
const |
|
inline |
Maximally entangled state of 2 qudits.
- Parameters
-
- Returns
- Maximally entangled state
of 2 qudits
◆ minus()
ket qpp::States::minus |
( |
idx |
n | ) |
const |
|
inline |
Minus state of n qubits.
- Parameters
-
- Returns
- Minus state
of n qubits
◆ one()
ket qpp::States::one |
( |
idx |
n, |
|
|
idx |
d = 2 |
|
) |
| const |
|
inline |
One state of n qudits.
- Parameters
-
n | Non-negative integer |
d | Subsystem dimensions |
- Returns
- One state
of n qudits
◆ plus()
ket qpp::States::plus |
( |
idx |
n | ) |
const |
|
inline |
Plus state of n qubits.
- Parameters
-
- Returns
- Plus state
of n qubits
◆ zero()
ket qpp::States::zero |
( |
idx |
n, |
|
|
idx |
d = 2 |
|
) |
| const |
|
inline |
Zero state of n qudits.
- Parameters
-
n | Non-negative integer |
d | Subsystem dimensions |
- Returns
- Zero state
of n qudits
◆ internal::Singleton< const States >
◆ b00
ket qpp::States::b00 {ket::Zero(4)} |
Bell-00 state (following the convention in Nielsen and Chuang)
◆ b01
ket qpp::States::b01 {ket::Zero(4)} |
Bell-01 state (following the convention in Nielsen and Chuang)
◆ b10
ket qpp::States::b10 {ket::Zero(4)} |
Bell-10 state (following the convention in Nielsen and Chuang)
◆ b11
ket qpp::States::b11 {ket::Zero(4)} |
Bell-11 state (following the convention in Nielsen and Chuang)
◆ GHZ
ket qpp::States::GHZ {ket::Zero(8)} |
◆ pb00
cmat qpp::States::pb00 {cmat::Zero(4, 4)} |
Projector onto the Bell-00 state.
◆ pb01
cmat qpp::States::pb01 {cmat::Zero(4, 4)} |
Projector onto the Bell-01 state.
◆ pb10
cmat qpp::States::pb10 {cmat::Zero(4, 4)} |
Projector onto the Bell-10 state.
◆ pb11
cmat qpp::States::pb11 {cmat::Zero(4, 4)} |
Projector onto the Bell-11 state.
◆ pGHZ
cmat qpp::States::pGHZ {cmat::Zero(8, 8)} |
Projector onto the GHZ state.
◆ pW
cmat qpp::States::pW {cmat::Zero(8, 8)} |
Projector onto the W state.
◆ px0
cmat qpp::States::px0 {cmat::Zero(2, 2)} |
Projector onto the Pauli Sigma-X 0-eigenstate |+><+|.
◆ px1
cmat qpp::States::px1 {cmat::Zero(2, 2)} |
Projector onto the Pauli Sigma-X 1-eigenstate |-><-|.
◆ py0
cmat qpp::States::py0 {cmat::Zero(2, 2)} |
Projector onto the Pauli Sigma-Y 0-eigenstate |y+><y+|.
◆ py1
cmat qpp::States::py1 {cmat::Zero(2, 2)} |
Projector onto the Pauli Sigma-Y 1-eigenstate |y-><y-|.
◆ pz0
cmat qpp::States::pz0 {cmat::Zero(2, 2)} |
Projector onto the Pauli Sigma-Z 0-eigenstate |0><0|.
◆ pz1
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)} |
◆ x0
ket qpp::States::x0 {ket::Zero(2)} |
Pauli Sigma-X 0-eigenstate |+>
◆ x1
ket qpp::States::x1 {ket::Zero(2)} |
Pauli Sigma-X 1-eigenstate |->
◆ y0
ket qpp::States::y0 {ket::Zero(2)} |
Pauli Sigma-Y 0-eigenstate |y+>
◆ y1
ket qpp::States::y1 {ket::Zero(2)} |
Pauli Sigma-Y 1-eigenstate |y->
◆ z0
ket qpp::States::z0 {ket::Zero(2)} |
Pauli Sigma-Z 0-eigenstate |0>
◆ z1
ket qpp::States::z1 {ket::Zero(2)} |
Pauli Sigma-Z 1-eigenstate |1>
The documentation for this class was generated from the following file: