@@ -192,7 +192,7 @@ TEST_P(TwoQubitEigenFixture, TwoEigenGate) {
192
192
ASSERT_EQ (QsimCircuitFromProgram (program_proto, symbol_map, 2 , &test_circuit,
193
193
&fused_circuit),
194
194
tensorflow::Status (static_cast <tensorflow::error::Code>(
195
- absl::StatusCode::kInvalidArgument ),
195
+ absl::StatusCode::kInvalidArgument ),
196
196
" Could not find arg: exponent in op." ));
197
197
198
198
test_circuit.gates .clear ();
@@ -205,7 +205,7 @@ TEST_P(TwoQubitEigenFixture, TwoEigenGate) {
205
205
QsimCircuitFromProgram (program_proto, symbol_map, 2 , &test_circuit,
206
206
&fused_circuit),
207
207
tensorflow::Status (static_cast <tensorflow::error::Code>(
208
- absl::StatusCode::kInvalidArgument ),
208
+ absl::StatusCode::kInvalidArgument ),
209
209
" Could not find symbol in parameter map: alpha" ));
210
210
}
211
211
@@ -364,7 +364,7 @@ TEST_P(SingleQubitEigenFixture, SingleEigenGate) {
364
364
ASSERT_EQ (QsimCircuitFromProgram (program_proto, symbol_map, 1 , &test_circuit,
365
365
&fused_circuit),
366
366
tensorflow::Status (static_cast <tensorflow::error::Code>(
367
- absl::StatusCode::kInvalidArgument ),
367
+ absl::StatusCode::kInvalidArgument ),
368
368
" Could not find arg: exponent in op." ));
369
369
370
370
test_circuit.gates .clear ();
@@ -377,7 +377,7 @@ TEST_P(SingleQubitEigenFixture, SingleEigenGate) {
377
377
QsimCircuitFromProgram (program_proto, symbol_map, 1 , &test_circuit,
378
378
&fused_circuit),
379
379
tensorflow::Status (static_cast <tensorflow::error::Code>(
380
- absl::StatusCode::kInvalidArgument ),
380
+ absl::StatusCode::kInvalidArgument ),
381
381
" Could not find symbol in parameter map: alpha" ));
382
382
}
383
383
@@ -696,7 +696,7 @@ TEST(QsimCircuitParserTest, FsimGate) {
696
696
ASSERT_EQ (QsimCircuitFromProgram (program_proto, symbol_map, 2 , &test_circuit,
697
697
&fused_circuit),
698
698
tensorflow::Status (static_cast <tensorflow::error::Code>(
699
- absl::StatusCode::kInvalidArgument ),
699
+ absl::StatusCode::kInvalidArgument ),
700
700
" Could not find arg: theta in op." ));
701
701
702
702
test_circuit.gates .clear ();
@@ -709,7 +709,7 @@ TEST(QsimCircuitParserTest, FsimGate) {
709
709
QsimCircuitFromProgram (program_proto, symbol_map, 2 , &test_circuit,
710
710
&fused_circuit),
711
711
tensorflow::Status (static_cast <tensorflow::error::Code>(
712
- absl::StatusCode::kInvalidArgument ),
712
+ absl::StatusCode::kInvalidArgument ),
713
713
" Could not find symbol in parameter map: alpha" ));
714
714
}
715
715
@@ -860,7 +860,7 @@ TEST(QsimCircuitParserTest, PhasedISwap) {
860
860
ASSERT_EQ (QsimCircuitFromProgram (program_proto, symbol_map, 2 , &test_circuit,
861
861
&fused_circuit),
862
862
tensorflow::Status (static_cast <tensorflow::error::Code>(
863
- absl::StatusCode::kInvalidArgument ),
863
+ absl::StatusCode::kInvalidArgument ),
864
864
" Could not find arg: phase_exponent in op." ));
865
865
866
866
test_circuit.gates .clear ();
@@ -873,7 +873,7 @@ TEST(QsimCircuitParserTest, PhasedISwap) {
873
873
QsimCircuitFromProgram (program_proto, symbol_map, 2 , &test_circuit,
874
874
&fused_circuit),
875
875
tensorflow::Status (static_cast <tensorflow::error::Code>(
876
- absl::StatusCode::kInvalidArgument ),
876
+ absl::StatusCode::kInvalidArgument ),
877
877
" Could not find symbol in parameter map: alpha" ));
878
878
}
879
879
@@ -1028,7 +1028,7 @@ TEST(QsimCircuitParserTest, PhasedXPow) {
1028
1028
ASSERT_EQ (QsimCircuitFromProgram (program_proto, symbol_map, 1 , &test_circuit,
1029
1029
&fused_circuit),
1030
1030
tensorflow::Status (static_cast <tensorflow::error::Code>(
1031
- absl::StatusCode::kInvalidArgument ),
1031
+ absl::StatusCode::kInvalidArgument ),
1032
1032
" Could not find arg: phase_exponent in op." ));
1033
1033
1034
1034
test_circuit.gates .clear ();
@@ -1041,7 +1041,7 @@ TEST(QsimCircuitParserTest, PhasedXPow) {
1041
1041
QsimCircuitFromProgram (program_proto, symbol_map, 1 , &test_circuit,
1042
1042
&fused_circuit),
1043
1043
tensorflow::Status (static_cast <tensorflow::error::Code>(
1044
- absl::StatusCode::kInvalidArgument ),
1044
+ absl::StatusCode::kInvalidArgument ),
1045
1045
" Could not find symbol in parameter map: alpha" ));
1046
1046
}
1047
1047
@@ -1135,7 +1135,7 @@ TEST(QsimCircuitParserTest, InvalidControlValues) {
1135
1135
ASSERT_EQ (QsimCircuitFromProgram (program_proto, empty_map, 3 , &test_circuit,
1136
1136
&fused_circuit, &metadata),
1137
1137
tensorflow::Status (static_cast <tensorflow::error::Code>(
1138
- absl::StatusCode::kInvalidArgument ),
1138
+ absl::StatusCode::kInvalidArgument ),
1139
1139
" Unparseable control value: junk" ));
1140
1140
}
1141
1141
@@ -1169,7 +1169,7 @@ TEST(QsimCircuitParserTest, MismatchControlNum) {
1169
1169
&fused_circuit, &metadata),
1170
1170
tensorflow::Status (
1171
1171
static_cast <tensorflow::error::Code>(
1172
- absl::StatusCode::kInvalidArgument ),
1172
+ absl::StatusCode::kInvalidArgument ),
1173
1173
" Mistmatched number of control qubits and control values." ));
1174
1174
}
1175
1175
@@ -1572,7 +1572,7 @@ TEST(QsimCircuitParserTest, NoisyBadProto) {
1572
1572
ASSERT_EQ (
1573
1573
NoisyQsimCircuitFromProgram (program_proto, {}, 1 , false , &test_circuit),
1574
1574
tensorflow::Status (static_cast <tensorflow::error::Code>(
1575
- absl::StatusCode::kInvalidArgument ),
1575
+ absl::StatusCode::kInvalidArgument ),
1576
1576
" Could not parse channel id: ABCDEFG" ));
1577
1577
}
1578
1578
0 commit comments