Commit 4b275a90 authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Fixed a unit test with graph



The string output now contains the layer info.
Signed-off-by: Nguyen, Thien Minh's avatarThien Nguyen <nguyentm@ornl.gov>
parent 5d419d80
...@@ -279,11 +279,11 @@ TEST(GateTester, checkGenerateGraph) { ...@@ -279,11 +279,11 @@ TEST(GateTester, checkGenerateGraph) {
std::string expected = R"expected(digraph G { std::string expected = R"expected(digraph G {
node [shape=box style=filled] node [shape=box style=filled]
0 [label="bits=[0,1,2];id=0;name=InitialState"]; 0 [label="bits=[0,1,2];id=0;name=InitialState"];
1 [label="bits=[1];id=1;name=H"]; 1 [label="bits=[1];id=1;layer=0;name=H"];
2 [label="bits=[1,2];id=2;name=CNOT"]; 2 [label="bits=[1,2];id=2;layer=1;name=CNOT"];
3 [label="bits=[0,1];id=3;name=CNOT"]; 3 [label="bits=[0,1];id=3;layer=2;name=CNOT"];
4 [label="bits=[0];id=4;name=H"]; 4 [label="bits=[0];id=4;layer=3;name=H"];
5 [label="bits=[2];id=5;name=Rz"]; 5 [label="bits=[2];id=5;layer=3;name=Rz"];
6 [label="bits=[0,1,2];id=6;name=FinalState"]; 6 [label="bits=[0,1,2];id=6;name=FinalState"];
0->1 ; 0->1 ;
0->2 ; 0->2 ;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment