QNLP  v1.0
test_gatewriter.cpp
Go to the documentation of this file.
1 //#define CATCH_CONFIG_RUNNER
2 
3 #include "GateWriter.hpp"
4 #include "Simulator.hpp"
5 #include "IntelSimulator.cpp"
6 #include "catch2/catch.hpp"
7 
8 #include <bitset>
9 
10 using namespace QNLP;
11 
12 typedef ComplexDP Type;
13 
14 template class NCU<IntelSimulator>;
15 
20 TEST_CASE("Test n-controlled unitary module with Pauli-X |11..10>","[ncu]"){
21  GateWriter writer;
22  writer.oneQubitGateCall("label", )
23 }
Class definition for applying n-qubit controlled unitary operations.
Definition: ncu.hpp:29
TEST_CASE("Test n-controlled unitary module with Pauli-X |11..10>","[ncu]")
Test n-controlled unitary module with Pauli-X |11..10>
ComplexDP Type
void oneQubitGateCall(const std::string &gateLabel, const std::string &matrixVals, std::size_t gate_idx)
Writes the single qubit gate to disk. -1 used to denote lack of control line.
Definition: GateWriter.hpp:79