Functions for applying the individual one-qubit Pauli operators.
More...
|
void | applyControlledPauliX (Qureg qureg, int control, int target) |
|
void | applyControlledPauliY (Qureg qureg, int control, int target) |
|
void | applyControlledPauliZ (Qureg qureg, int control, int target) |
|
void | applyMultiControlledPauliX (Qureg qureg, int *controls, int numControls, int target) |
|
void | applyMultiControlledPauliY (Qureg qureg, int *controls, int numControls, int target) |
|
void | applyMultiControlledPauliZ (Qureg qureg, int *controls, int numControls, int target) |
|
void | applyMultiStateControlledPauliX (Qureg qureg, int *controls, int *states, int numControls, int target) |
|
void | applyMultiStateControlledPauliY (Qureg qureg, int *controls, int *states, int numControls, int target) |
|
void | applyMultiStateControlledPauliZ (Qureg qureg, int *controls, int *states, int numControls, int target) |
|
void | applyPauliX (Qureg qureg, int target) |
|
void | applyPauliY (Qureg qureg, int target) |
|
void | applyPauliZ (Qureg qureg, int target) |
|
void | multiplyPauliX (Qureg qureg, int target) |
|
void | multiplyPauliY (Qureg qureg, int target) |
|
void | multiplyPauliZ (Qureg qureg, int target) |
|
Functions for applying the individual one-qubit Pauli operators.
◆ applyControlledPauliX()
void applyControlledPauliX |
( |
Qureg | qureg, |
|
|
int | control, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
Definition at line 910 of file operations.cpp.
910 {
911 validate_quregFields(qureg, __func__);
912 validate_controlAndTarget(qureg, control, target, __func__);
913
914
916}
void applyMultiStateControlledPauliX(Qureg qureg, int *controls, int *states, int numControls, int target)
◆ applyControlledPauliY()
void applyControlledPauliY |
( |
Qureg | qureg, |
|
|
int | control, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
Definition at line 918 of file operations.cpp.
918 {
919 validate_quregFields(qureg, __func__);
920 validate_controlAndTarget(qureg, control, target, __func__);
921
922
924}
void applyMultiStateControlledPauliY(Qureg qureg, int *controls, int *states, int numControls, int target)
◆ applyControlledPauliZ()
void applyControlledPauliZ |
( |
Qureg | qureg, |
|
|
int | control, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
Definition at line 926 of file operations.cpp.
926 {
927 validate_quregFields(qureg, __func__);
928 validate_controlAndTarget(qureg, control, target, __func__);
929
930
932}
void applyMultiStateControlledPauliZ(Qureg qureg, int *controls, int *states, int numControls, int target)
◆ applyMultiControlledPauliX()
void applyMultiControlledPauliX |
( |
Qureg | qureg, |
|
|
int * | controls, |
|
|
int | numControls, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
Definition at line 934 of file operations.cpp.
934 {
935 validate_quregFields(qureg, __func__);
936 validate_controlsAndTarget(qureg, controls, numControls, target, __func__);
937
938
940}
Referenced by applyMultiControlledPauliX().
◆ applyMultiControlledPauliY()
void applyMultiControlledPauliY |
( |
Qureg | qureg, |
|
|
int * | controls, |
|
|
int | numControls, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
Definition at line 942 of file operations.cpp.
942 {
943 validate_quregFields(qureg, __func__);
944 validate_controlsAndTarget(qureg, controls, numControls, target, __func__);
945
946
948}
Referenced by applyMultiControlledPauliY().
◆ applyMultiControlledPauliZ()
void applyMultiControlledPauliZ |
( |
Qureg | qureg, |
|
|
int * | controls, |
|
|
int | numControls, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
Definition at line 950 of file operations.cpp.
950 {
951 validate_quregFields(qureg, __func__);
952 validate_controlsAndTarget(qureg, controls, numControls, target, __func__);
953
954
956}
Referenced by applyMultiControlledPauliZ().
◆ applyMultiStateControlledPauliX()
void applyMultiStateControlledPauliX |
( |
Qureg | qureg, |
|
|
int * | controls, |
|
|
int * | states, |
|
|
int | numControls, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
- See also
- applyMultiStateControlledCompMatr1()
Definition at line 958 of file operations.cpp.
958 {
959 validate_quregFields(qureg, __func__);
960 validate_controlsAndTarget(qureg, controls, numControls, target, __func__);
961 validate_controlStates(states, numControls, __func__);
962
963
965}
void applyMultiStateControlledPauliStr(Qureg qureg, int *controls, int *states, int numControls, PauliStr str)
PauliStr getPauliStr(const char *paulis, int *indices, int numPaulis)
Referenced by applyControlledPauliX(), applyMultiControlledPauliX(), applyMultiStateControlledPauliX(), and applyPauliX().
◆ applyMultiStateControlledPauliY()
void applyMultiStateControlledPauliY |
( |
Qureg | qureg, |
|
|
int * | controls, |
|
|
int * | states, |
|
|
int | numControls, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
- See also
- applyMultiStateControlledCompMatr1()
Definition at line 967 of file operations.cpp.
967 {
968 validate_quregFields(qureg, __func__);
969 validate_controlsAndTarget(qureg, controls, numControls, target, __func__);
970 validate_controlStates(states, numControls, __func__);
971
972
974}
Referenced by applyControlledPauliY(), applyMultiControlledPauliY(), applyMultiStateControlledPauliY(), and applyPauliY().
◆ applyMultiStateControlledPauliZ()
void applyMultiStateControlledPauliZ |
( |
Qureg | qureg, |
|
|
int * | controls, |
|
|
int * | states, |
|
|
int | numControls, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
- See also
- applyMultiStateControlledCompMatr1()
Definition at line 976 of file operations.cpp.
976 {
977 validate_quregFields(qureg, __func__);
978 validate_controlsAndTarget(qureg, controls, numControls, target, __func__);
979 validate_controlStates(states, numControls, __func__);
980
981
984}
static DiagMatr1 getDiagMatr1(qcomp *in)
void applyMultiStateControlledDiagMatr1(Qureg qureg, int *controls, int *states, int numControls, int target, DiagMatr1 matrix)
Referenced by applyControlledPauliZ(), applyMultiControlledPauliZ(), applyMultiStateControlledPauliZ(), and applyPauliZ().
◆ applyPauliX()
void applyPauliX |
( |
Qureg | qureg, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
Definition at line 886 of file operations.cpp.
886 {
887 validate_quregFields(qureg, __func__);
888 validate_target(qureg, target, __func__);
889
890
892}
◆ applyPauliY()
void applyPauliY |
( |
Qureg | qureg, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
Definition at line 894 of file operations.cpp.
894 {
895 validate_quregFields(qureg, __func__);
896 validate_target(qureg, target, __func__);
897
898
900}
◆ applyPauliZ()
void applyPauliZ |
( |
Qureg | qureg, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
Definition at line 902 of file operations.cpp.
902 {
903 validate_quregFields(qureg, __func__);
904 validate_target(qureg, target, __func__);
905
906
908}
◆ multiplyPauliX()
void multiplyPauliX |
( |
Qureg | qureg, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
- See also
- multiplyCompMatr1()
◆ multiplyPauliY()
void multiplyPauliY |
( |
Qureg | qureg, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
- See also
- multiplyCompMatr1()
◆ multiplyPauliZ()
void multiplyPauliZ |
( |
Qureg | qureg, |
|
|
int | target ) |
- Note
- Documentation for this function or struct is under construction!
- See also
- multiplyCompMatr1()