Adding typical gates to a circuit. More...
Classes | |
class | target_line_adder |
Helper class for adding lines in an easier way. More... | |
class | control_line_adder |
Helper class for adding lines in an easier way. More... | |
Namespaces | |
namespace | revkit |
Main namespace. | |
Functions | |
gate & | append_toffoli (circuit &circ, const gate::line_container &controls, const gate::line &target) |
Helper function for appending a Toffoli gate. | |
gate & | append_fredkin (circuit &circ, const gate::line_container &controls, const gate::line &target1, const gate::line &target2) |
Helper function for appending a Fredkin gate. | |
gate & | append_peres (circuit &circ, const gate::line &control, const gate::line &target1, const gate::line &target2) |
Helper function for appending a Peres gate. | |
gate & | append_cnot (circuit &circ, const gate::line &control, const gate::line &target) |
Helper function for appending a CNOT gate. | |
gate & | append_v (circuit &circ, const gate::line &control, const gate::line &target) |
Helper function for appending a V gate. | |
gate & | append_vplus (circuit &circ, const gate::line &control, const gate::line &target) |
Helper function for appending a V+ gate. | |
gate & | append_not (circuit &circ, const gate::line &target) |
Helper function for appending a NOT gate. | |
control_line_adder | append_gate (circuit &circ, const boost::any &tag) |
Helper function for appending a generic gate using the control_line_adder. | |
control_line_adder | append_toffoli (circuit &circ) |
Helper function for appending a Toffoli gate using the control_line_adder. | |
control_line_adder | append_fredkin (circuit &circ) |
Helper function for appending a Fredkin gate using the control_line_adder. | |
gate & | prepend_toffoli (circuit &circ, const gate::line_container &controls, const gate::line &target) |
Helper function for prepending a Toffoli gate. | |
gate & | prepend_fredkin (circuit &circ, const gate::line_container &controls, const gate::line &target1, const gate::line &target2) |
Helper function for prepending a Fredkin gate. | |
gate & | prepend_peres (circuit &circ, const gate::line &control, const gate::line &target1, const gate::line &target2) |
Helper function for prepending a Peres gate. | |
gate & | prepend_cnot (circuit &circ, const gate::line &control, const gate::line &target) |
Helper function for prepending a CNOT gate. | |
gate & | prepend_v (circuit &circ, const gate::line &control, const gate::line &target) |
Helper function for prepending a V gate. | |
gate & | prepend_vplus (circuit &circ, const gate::line &control, const gate::line &target) |
Helper function for prepending a V+ gate. | |
gate & | prepend_not (circuit &circ, const gate::line &target) |
Helper function for prepending a NOT gate. | |
control_line_adder | prepend_gate (circuit &circ, const boost::any &tag) |
Helper function for prepending a generic gate using the control_line_adder. | |
control_line_adder | prepend_toffoli (circuit &circ) |
Helper function for prepending a Toffoli gate using the control_line_adder. | |
control_line_adder | prepend_fredkin (circuit &circ) |
Helper function for prepending a Fredkin gate using the control_line_adder. | |
gate & | insert_toffoli (circuit &circ, unsigned n, const gate::line_container &controls, const gate::line &target) |
Helper function for inserting a Toffoli gate. | |
gate & | insert_fredkin (circuit &circ, unsigned n, const gate::line_container &controls, const gate::line &target1, const gate::line &target2) |
Helper function for inserting a Fredkin gate. | |
gate & | insert_peres (circuit &circ, unsigned n, const gate::line &control, const gate::line &target1, const gate::line &target2) |
Helper function for inserting a Peres gate. | |
gate & | insert_cnot (circuit &circ, unsigned n, const gate::line &control, const gate::line &target) |
Helper function for inserting a CNOT gate. | |
gate & | insert_v (circuit &circ, unsigned n, const gate::line &control, const gate::line &target) |
Helper function for inserting a V gate. | |
gate & | insert_vplus (circuit &circ, unsigned n, const gate::line &control, const gate::line &target) |
Helper function for inserting a V+ gate. | |
gate & | insert_not (circuit &circ, unsigned n, const gate::line &target) |
Helper function for inserting a NOT gate. | |
control_line_adder | insert_gate (circuit &circ, unsigned n, const boost::any &tag) |
Helper function for inserting a generic gate using the control_line_adder. | |
control_line_adder | insert_toffoli (circuit &circ, unsigned n) |
Helper function for inserting a Toffoli gate using the control_line_adder. | |
control_line_adder | insert_fredkin (circuit &circ, unsigned n) |
Helper function for inserting a Fredkin gate using the control_line_adder. |
Adding typical gates to a circuit.