![]() |
The Quantum Exact Simulation Toolkit v4.3.0
|
Functions for applying the one-qubit S, T and Hadamard gates. More...
Functions | |
| void | applyControlledHadamard (Qureg qureg, int control, int target) |
| void | applyControlledS (Qureg qureg, int control, int target) |
| void | applyControlledT (Qureg qureg, int control, int target) |
| void | applyHadamard (Qureg qureg, int target) |
| void | applyMultiControlledHadamard (Qureg qureg, int *controls, int numControls, int target) |
| void | applyMultiControlledS (Qureg qureg, int *controls, int numControls, int target) |
| void | applyMultiControlledT (Qureg qureg, int *controls, int numControls, int target) |
| void | applyMultiStateControlledHadamard (Qureg qureg, int *controls, int *states, int numControls, int target) |
| void | applyMultiStateControlledS (Qureg qureg, int *controls, int *states, int numControls, int target) |
| void | applyMultiStateControlledT (Qureg qureg, int *controls, int *states, int numControls, int target) |
| void | applyS (Qureg qureg, int target) |
| void | applyT (Qureg qureg, int target) |
Functions for applying the one-qubit S, T and Hadamard gates.
| void applyControlledHadamard | ( | Qureg | qureg, |
| int | control, | ||
| int | target ) |
Applies a singly-controlled Hadamard gate on the target qubit of qureg.
- See applyHadamard() for information about the base operation.
- See applyControlledCompMatr1() for information about
control.
Definition at line 605 of file operations.cpp.
| void applyControlledS | ( | Qureg | qureg, |
| int | control, | ||
| int | target ) |
Applies a singly-controlled S gate on the target qubit of qureg.
- See applyS() for information about the base operation.
- See applyControlledCompMatr1() for information about
control.
Definition at line 503 of file operations.cpp.
| void applyControlledT | ( | Qureg | qureg, |
| int | control, | ||
| int | target ) |
Applies a singly-controlled T gate on the target qubit of qureg.
- See applyT() for information about the base operation.
- See applyControlledCompMatr1() for information about
control.
Definition at line 554 of file operations.cpp.
| void applyHadamard | ( | Qureg | qureg, |
| int | target ) |
Definition at line 597 of file operations.cpp.
Referenced by applyQuantumFourierTransform().
| void applyMultiControlledHadamard | ( | Qureg | qureg, |
| int * | controls, | ||
| int | numControls, | ||
| int | target ) |
Applies an arbitrarily-controlled Hadamard gate on the target qubit of qureg, conditioned upon controls being in the corresponding states.
- See applyHadamard() for information about the base operation.
- See applyMultiStateControlledCompMatr1() for information about
controlsandstates.
Definition at line 613 of file operations.cpp.
Referenced by applyMultiControlledHadamard().
| void applyMultiControlledS | ( | Qureg | qureg, |
| int * | controls, | ||
| int | numControls, | ||
| int | target ) |
Applies a multiply-controlled S gate on the target qubit of qureg.
- See applyS() for information about the base operation.
- See applyMultiControlledCompMatr1() for information about
controls.
Definition at line 511 of file operations.cpp.
Referenced by applyMultiControlledS().
| void applyMultiControlledT | ( | Qureg | qureg, |
| int * | controls, | ||
| int | numControls, | ||
| int | target ) |
Applies an arbitrarily-controlled T gate on the target qubit of qureg, conditioned upon controls being in the corresponding states.
- See applyT() for information about the base operation.
- See applyMultiStateControlledCompMatr1() for information about
controlsandstates.
Definition at line 562 of file operations.cpp.
Referenced by applyMultiControlledT().
| void applyMultiStateControlledHadamard | ( | Qureg | qureg, |
| int * | controls, | ||
| int * | states, | ||
| int | numControls, | ||
| int | target ) |
Applies an arbitrarily-controlled Hadamard gate on the target qubit of qureg, conditioned upon controls being in the corresponding states.
- See applyHadamard() for information about the base operation.
- See applyMultiStateControlledCompMatr1() for information about
controlsandstates.
Definition at line 621 of file operations.cpp.
Referenced by applyControlledHadamard(), applyHadamard(), applyMultiControlledHadamard(), and applyMultiStateControlledHadamard().
| void applyMultiStateControlledS | ( | Qureg | qureg, |
| int * | controls, | ||
| int * | states, | ||
| int | numControls, | ||
| int | target ) |
Applies an arbitrarily-controlled S gate on the target qubit of qureg, conditioned upon controls being in the corresponding states.
- See applyS() for information about the base operation.
- See applyMultiStateControlledCompMatr1() for information about
controlsandstates.
Definition at line 519 of file operations.cpp.
Referenced by applyControlledS(), applyMultiControlledS(), applyMultiStateControlledS(), and applyS().
| void applyMultiStateControlledT | ( | Qureg | qureg, |
| int * | controls, | ||
| int * | states, | ||
| int | numControls, | ||
| int | target ) |
Applies an arbitrarily-controlled T gate on the target qubit of qureg, conditioned upon controls being in the corresponding states.
- See applyT() for information about the base operation.
- See applyMultiStateControlledCompMatr1() for information about
controlsandstates.
Definition at line 570 of file operations.cpp.
Referenced by applyControlledT(), applyMultiControlledT(), applyMultiStateControlledT(), and applyT().
| void applyS | ( | Qureg | qureg, |
| int | target ) |
Definition at line 495 of file operations.cpp.
| void applyT | ( | Qureg | qureg, |
| int | target ) |
Definition at line 546 of file operations.cpp.