Skip to content

Commit 4b879ee

Browse files
committed
Updated reconstruction examples.
Signed-off-by: Dmitry I. Lyakh <[email protected]>
1 parent 381a54c commit 4b879ee

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

examples/exatn_gen/exatn_reconstruct_visitor.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ int benchmarkExaTnGen3()
100100
auto accelerator =
101101
xacc::getAccelerator("tnqvm", {{"tnqvm-visitor", "exatn-gen"},
102102
{"exatn-buffer-size-gb", 2},
103-
{"reconstruct-layers", 15},
104-
{"reconstruct-tolerance", 1e-2},
103+
{"reconstruct-layers", 4},
104+
{"reconstruct-tolerance", 1e-4},
105105
{"max-bond-dim", 1},
106106
{"bitstring", bitstring}});
107107
auto qreg = xacc::qalloc(NB_QUBITS);
@@ -118,9 +118,9 @@ int main(int argc, char **argv) {
118118
xacc::Initialize(argc, argv);
119119
xacc::set_verbose(true);
120120
//xacc::logToFile(true);
121-
//xacc::setLoggingLevel(2);
121+
//xacc::setLoggingLevel(1);
122122
int error_code = 0;
123-
if(error_code == 0) error_code = benchmarkExaTnGen1();
123+
//if(error_code == 0) error_code = benchmarkExaTnGen1();
124124
//if(error_code == 0) error_code = benchmarkExaTnGen2();
125125
if(error_code == 0) error_code = benchmarkExaTnGen3();
126126
xacc::Finalize();

examples/sycamore/sycamore_circ_approx.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ int main(int argc, char **argv)
1919
xacc::Initialize();
2020
//xacc::set_verbose(true);
2121
//xacc::logToFile(true);
22-
//xacc::setLoggingLevel(2);
22+
//xacc::setLoggingLevel(1);
2323

2424
// Options: 4, 5, 6, 8, 10, 12, 14, 16, 18, 20:
25-
const int CIRCUIT_DEPTH = 8;
25+
const int CIRCUIT_DEPTH = 4;
2626

2727
// Construct the full path to the XASM source file:
2828
const std::string XASM_SRC_FILE = std::string(RESOURCE_DIR) + "/sycamore_53_" + std::to_string(CIRCUIT_DEPTH) + "_0.xasm";
@@ -45,12 +45,12 @@ int main(int argc, char **argv)
4545
// Note:
4646
// (1) "exatn" == "exatn:double" uses double (64-bit) type;
4747
// (1) "exatn:float" uses float (32-bit) type;
48-
constexpr int NB_LAYERS = 2;
48+
constexpr int NB_LAYERS = 23;
4949
constexpr double RECONSTRUCTION_TOL = 1e-3;
5050
constexpr int MAX_BOND_DIM = 16;
5151
auto qpu = xacc::getAccelerator("tnqvm",
5252
{std::make_pair("tnqvm-visitor", "exatn-gen")
53-
//,std::make_pair("bitstring", BIT_STRING)
53+
,std::make_pair("bitstring", BIT_STRING)
5454
,std::make_pair("exatn-buffer-size-gb", 8)
5555
,{"reconstruct-layers", NB_LAYERS}
5656
,{"reconstruct-tolerance", RECONSTRUCTION_TOL}

0 commit comments

Comments
 (0)