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
}
QNLP::GateWriter
Definition:
GateWriter.hpp:9
Simulator.hpp
QNLP::NCU
Class definition for applying n-qubit controlled unitary operations.
Definition:
ncu.hpp:29
TEST_CASE
TEST_CASE("Test n-controlled unitary module with Pauli-X |11..10>","[ncu]")
Test n-controlled unitary module with Pauli-X |11..10>
Definition:
test_gatewriter.cpp:20
IntelSimulator.cpp
QNLP
Definition:
bin_into_superpos.hpp:19
Type
ComplexDP Type
Definition:
test_gatewriter.cpp:12
GateWriter.hpp
QNLP::GateWriter::oneQubitGateCall
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
intel-qnlp-rc2
modules
io
GateWriter
test_gatewriter.cpp
Generated by
1.8.15