![]() |
The Quantum Exact Simulation Toolkit v4.3.0
|
Functions for effecting many-qubit NOT gates. More...
Functions | |
| void | applyControlledMultiQubitNot (Qureg qureg, int control, int *targets, int numTargets) |
| void | applyMultiControlledMultiQubitNot (Qureg qureg, int *controls, int numControls, int *targets, int numTargets) |
| void | applyMultiQubitNot (Qureg qureg, int *targets, int numTargets) |
| void | applyMultiStateControlledMultiQubitNot (Qureg qureg, int *controls, int *states, int numControls, int *targets, int numTargets) |
Functions for effecting many-qubit NOT gates.
| void applyControlledMultiQubitNot | ( | Qureg | qureg, |
| int | control, | ||
| int * | targets, | ||
| int | numTargets ) |
Applies a singly-controlled many-qubit NOT gate (or tensor product of Pauli X operators) upon the targets of qureg.
- See applyMultiQubitNot() for information about the base operation.
- See applyControlledCompMatr1() for information about
control.
Definition at line 1500 of file operations.cpp.
Referenced by applyControlledMultiQubitNot().
| void applyMultiControlledMultiQubitNot | ( | Qureg | qureg, |
| int * | controls, | ||
| int | numControls, | ||
| int * | targets, | ||
| int | numTargets ) |
Applies a multiply-controlled many-qubit NOT gate (or tensor product of Pauli X operators) upon the targets of qureg.
- See applyMultiQubitNot() for information about the base operation.
- See applyMultiControlledCompMatr1() for information about
controls.
Definition at line 1508 of file operations.cpp.
Referenced by applyMultiControlledMultiQubitNot().
| void applyMultiQubitNot | ( | Qureg | qureg, |
| int * | targets, | ||
| int | numTargets ) |
Applies a many-qubit NOT gate (or tensor product of Pauli X operators) upon the targets of qureg.
targets are specified in increasing order, though the effect of this function is incidentally unaffected by the ordering of targets.Definition at line 1492 of file operations.cpp.
Referenced by applyMultiQubitNot().
| void applyMultiStateControlledMultiQubitNot | ( | Qureg | qureg, |
| int * | controls, | ||
| int * | states, | ||
| int | numControls, | ||
| int * | targets, | ||
| int | numTargets ) |
Applies an arbitrarily-controlled many-qubit NOT gate (or tensor product of Pauli X operators) upon the targets of qureg, conditioned upon controls being in the corresponding states.
- See applyMultiQubitNot() for information about the base operation.
- See applyMultiStateControlledCompMatr1() for information about
controlsandstates.
Definition at line 1516 of file operations.cpp.
Referenced by applyControlledMultiQubitNot(), applyMultiControlledMultiQubitNot(), applyMultiQubitNot(), and applyMultiStateControlledMultiQubitNot().