Skip to content

Commit

Permalink
Cut dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed May 25, 2024
1 parent 889b7ae commit 864930b
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pennylane_qrack/qrack_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,14 +686,6 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
} else {
applyNamedOperation(name, dev_controlled_wires, dev_controlled_values, dev_wires, inverse, params);
}

// TODO: This the Lightning implementation, which doesn't work for Qrack yet, below.

// Update tape caching if required
// if (tapeRecording) {
// this->cache_manager.addOperation(name, params, dev_wires, inverse, {}, dev_controlled_wires,
// controlled_values);
// }
}
void MatrixOperation(const std::vector<std::complex<double>> &matrix,
const std::vector<QubitIdType> &wires, bool inverse,
Expand Down Expand Up @@ -727,14 +719,6 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
}
qsim->UCMtrx(dev_controlled_wires, inverse ? inv : mtrx, wires[0U], controlPerm);
}

// TODO: This the Lightning implementation, which doesn't work for Qrack yet, below.

// Update tape caching if required
// if (tapeRecording) {
// this->cache_manager.addOperation("QubitUnitary", {}, dev_wires, inverse, matrix,
// dev_controlled_wires, controlled_values);
// }
}
auto Expval(ObsIdType id) -> double override
{
Expand Down

0 comments on commit 864930b

Please sign in to comment.