| QNLP
    v1.0
    | 
#include "bin_into_superpos.hpp"#include "Simulator.hpp"#include "IntelSimulator.cpp"#include "catch2/catch.hpp"#include <bitset>
Go to the source code of this file.
| Typedefs | |
| typedef ComplexDP | Type | 
| Functions | |
| TEST_CASE ("Test encoding of binary (integers) to superposition","[encode]") | |
| Test binary encoding basic implementation.  More... | |
| TEST_CASE ("Test encoding of different register sizes and checking states' amplitudes","[encode_amp]") | |
| Test binary encoding for different register sizes and checking that the states' amplitudes are correct.  More... | |
| typedef ComplexDP Type | 
Definition at line 13 of file test_bin_into_superpos.cpp.
| TEST_CASE | ( | "Test encoding of binary (integers) to superposition" | , | 
| "" | [encode] | ||
| ) | 
Test binary encoding basic implementation.
Definition at line 21 of file test_bin_into_superpos.cpp.
References QNLP::EncodeBinIntoSuperpos< SimulatorType >::encodeBinInToSuperpos_unique(), QNLP_Python_MPI::len_reg_auxiliary, QNLP_EndToEnd_MPI::len_reg_memory, QNLP_Python_MPI::num_bin_pattern, ncu_opt_tester::num_qubits, QNLP_Python_MPI::reg_auxiliary, QNLP_EndToEnd_MPI::reg_memory, ncu_opt_tester::sim, QNLP.tagging.tag_file::val, and QNLP_EndToEnd_MPI::vec_to_encode.

| TEST_CASE | ( | "Test encoding of different register sizes and checking states' amplitudes" | , | 
| "" | [encode_amp] | ||
| ) | 
Test binary encoding for different register sizes and checking that the states' amplitudes are correct.
Definition at line 67 of file test_bin_into_superpos.cpp.
References QNLP_Python_MPI::len_reg_auxiliary, QNLP_EndToEnd_MPI::len_reg_memory, QNLP_Python_MPI::num_bin_pattern, ncu_opt_tester::num_qubits, QNLP_Python_MPI::reg_auxiliary, QNLP_EndToEnd_MPI::reg_memory, ncu_opt_tester::sim, QNLP_EndToEnd_MPI::test_pattern, QNLP.tagging.tag_file::val, and QNLP_EndToEnd_MPI::vec_to_encode.