#include "linalg.h"
#include "quantum.h"
Include dependency graph for conststates.cpp:
Namespaces | |
namespace | ConstStates |
Functions | |
State | ConstStates::QubitSpinState (double x, double y, double z) |
Returns a J=1/2 pure state so that <X>=x , <Y>=y , and <Z>=z , up to normalization. | |
State | ConstStates::ZPlus () |
Returns the +1 eigenstate of SigmaZ. | |
State | ConstStates::ZMinus () |
Returns the -1 eigenstate of SigmaZ. | |
State | ConstStates::XPlus () |
Returns the +1 eigenstate of SigmaX. | |
State | ConstStates::XMinus () |
Returns the -1 eigenstate of SigmaX. | |
State | ConstStates::YPlus () |
Returns the +1 eigenstate of SigmaY. | |
State | ConstStates::YMinus () |
Returns the -1 eigenstate of SigmaY. | |
State | ConstStates::QubitMUBState (itype i) |
Returns the i th state from the 6-element qubit MUB set: {|0>, |1>, |+>, |->, |+i>, |-i>}. | |
State | ConstStates::QubitSICPState (itype i) |
Returns the i th state from a 4-element qubit SICPOVM chosen so that the 1st is |0>, and the 2nd is in the X-Z plane. | |
Operator | ConstStates::Identity (itype D) |
Returns the identity operator in D dimensions. | |
Operator | ConstStates::Zero (itype D) |
Returns the zero operator in D dimensions. | |
Operator | ConstStates::QubitSpinOperator (double x, double y, double z) |
Returns an arbitrary J=1/2 spin operator ![]() | |
Operator | ConstStates::Hadamard () |
Returns the Hadamard matrix for qubits. | |
Operator | ConstStates::HalfPhase () |
Returns the phase-flip matrix (square root of SigmaZ) for qubits. | |
Operator | ConstStates::SigmaI () |
Returns the J=1/2 Identity operator. | |
Operator | ConstStates::SigmaX () |
Returns the J=1/2 Pauli spin operator along the X axis. | |
Operator | ConstStates::SigmaY () |
Returns the J=1/2 Pauli spin operator along the Y axis. | |
Operator | ConstStates::SigmaZ () |
Returns the J=1/2 Pauli spin operator along the Z axis. | |
Operator | ConstStates::Sigma (itype i) |
Returns the i th matrix from the Pauli group, {X,Y,Z,I}. | |
Operator | ConstStates::Jz (itype d) |
Returns the Jz (angular momentum along the z-axis) operator in d dimensions. | |
Operator | ConstStates::Jx (itype d) |
Returns the Jz (angular momentum along the z-axis) operator in d dimensions. | |
Operator | ConstStates::Jy (itype d) |
Returns the Jz (angular momentum along the z-axis) operator in d dimensions. | |
Operator | ConstStates::Jn (itype d, double x, double y, double z) |
Returns the d -dimensional angular-momentum-along-the-(x,y,z)-axis operator. |