Skip to content

Commit

Permalink
Update Replacement.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdilkes committed Aug 16, 2023
1 parent c738f9e commit 9b7e623
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tket/src/Transformations/Replacement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,30 +92,12 @@ Circuit TK2_circ_from_multiq(const Op_ptr op) {
case OpType::CnY:
// TODO We should be able to do better than this.
return multi_controlled_to_2q(op, OpType::TK2);
case OpType::ISWAP:
return CircPool::ISWAP_using_TK2(params[0]);
case OpType::PhasedISWAP:
return CircPool::PhasedISWAP_using_TK2(params[0], params[1]);
case OpType::XXPhase:
return CircPool::XXPhase_using_TK2(params[0]);
case OpType::YYPhase:
return CircPool::YYPhase_using_TK2(params[0]);
case OpType::ZZPhase:
return CircPool::ZZPhase_using_TK2(params[0]);
case OpType::ESWAP:
return CircPool::ESWAP_using_TK2(params[0]);
case OpType::FSim:
return CircPool::FSim_using_TK2(params[0], params[1]);
case OpType::CRx:
return CircPool::CRx_using_TK2(params[0]);
case OpType::CRy:
return CircPool::CRy_using_TK2(params[0]);
case OpType::CRz:
return CircPool::CRz_using_TK2(params[0]);
case OpType::CU1:
return CircPool::CU1_using_TK2(params[0]);
case OpType::XXPhase3:
return CircPool::XXPhase3_using_TK2(params[0]);
default:
return with_TK2(as_gate_ptr(op));
}
Expand Down

0 comments on commit 9b7e623

Please sign in to comment.