Skip to content

Commit

Permalink
Remove shots from capture
Browse files Browse the repository at this point in the history
  • Loading branch information
rauletorresc committed Dec 3, 2024
1 parent 56d28fc commit b46a8de
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1834,8 +1834,8 @@ TEST_CASE("Probs with a seeded device", "[Measures]") {

std::vector<std::mt19937> gens{std::mt19937{37}, std::mt19937{37}};

auto circuit = [shots](LGPUSimulator &sim, DataView<double, 1> &view,
std::mt19937 &gen) {
auto circuit = [](LGPUSimulator &sim, DataView<double, 1> &view,
std::mt19937 &gen) {
sim.SetDevicePRNG(&gen);
sim.SetDeviceShots(shots);
// state-vector with #qubits = n
Expand Down Expand Up @@ -1873,8 +1873,8 @@ TEST_CASE("Var with a seeded device", "[Measures]") {

std::vector<std::mt19937> gens{std::mt19937{37}, std::mt19937{37}};

auto circuit = [shots](LGPUSimulator &sim, std::vector<double> &var,
std::mt19937 &gen) {
auto circuit = [](LGPUSimulator &sim, std::vector<double> &var,
std::mt19937 &gen) {
sim.SetDevicePRNG(&gen);
sim.SetDeviceShots(shots);
// state-vector with #qubits = n
Expand Down Expand Up @@ -1919,8 +1919,8 @@ TEST_CASE("Expval with a seeded device", "[Measures]") {

std::vector<std::mt19937> gens{std::mt19937{37}, std::mt19937{37}};

auto circuit = [shots](LGPUSimulator &sim, std::vector<double> &expval,
std::mt19937 &gen) {
auto circuit = [](LGPUSimulator &sim, std::vector<double> &expval,
std::mt19937 &gen) {
sim.SetDevicePRNG(&gen);
sim.SetDeviceShots(shots);
// state-vector with #qubits = n
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1833,8 +1833,8 @@ TEST_CASE("Probs with a seeded device", "[Measures]") {

std::vector<std::mt19937> gens{std::mt19937{37}, std::mt19937{37}};

auto circuit = [shots](LKSimulator &sim, DataView<double, 1> &view,
std::mt19937 &gen) {
auto circuit = [](LKSimulator &sim, DataView<double, 1> &view,
std::mt19937 &gen) {
sim.SetDevicePRNG(&gen);
sim.SetDeviceShots(shots);
// state-vector with #qubits = n
Expand Down Expand Up @@ -1872,8 +1872,8 @@ TEST_CASE("Var with a seeded device", "[Measures]") {

std::vector<std::mt19937> gens{std::mt19937{37}, std::mt19937{37}};

auto circuit = [shots](LKSimulator &sim, std::vector<double> &var,
std::mt19937 &gen) {
auto circuit = [](LKSimulator &sim, std::vector<double> &var,
std::mt19937 &gen) {
sim.SetDevicePRNG(&gen);
sim.SetDeviceShots(shots);
// state-vector with #qubits = n
Expand Down Expand Up @@ -1918,8 +1918,8 @@ TEST_CASE("Expval with a seeded device", "[Measures]") {

std::vector<std::mt19937> gens{std::mt19937{37}, std::mt19937{37}};

auto circuit = [shots](LKSimulator &sim, std::vector<double> &expval,
std::mt19937 &gen) {
auto circuit = [](LKSimulator &sim, std::vector<double> &expval,
std::mt19937 &gen) {
sim.SetDevicePRNG(&gen);
sim.SetDeviceShots(shots);
// state-vector with #qubits = n
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1843,8 +1843,8 @@ TEST_CASE("Probs with a seeded device", "[Measures]") {

std::vector<std::mt19937> gens{std::mt19937{37}, std::mt19937{37}};

auto circuit = [shots](LQSimulator &sim, DataView<double, 1> &view,
std::mt19937 &gen) {
auto circuit = [](LQSimulator &sim, DataView<double, 1> &view,
std::mt19937 &gen) {
sim.SetDevicePRNG(&gen);
sim.SetDeviceShots(shots);
// state-vector with #qubits = n
Expand Down Expand Up @@ -1882,8 +1882,8 @@ TEST_CASE("Var with a seeded device", "[Measures]") {

std::vector<std::mt19937> gens{std::mt19937{37}, std::mt19937{37}};

auto circuit = [shots](LQSimulator &sim, std::vector<double> &var,
std::mt19937 &gen) {
auto circuit = [](LQSimulator &sim, std::vector<double> &var,
std::mt19937 &gen) {
sim.SetDevicePRNG(&gen);
sim.SetDeviceShots(shots);
// state-vector with #qubits = n
Expand Down Expand Up @@ -1928,8 +1928,8 @@ TEST_CASE("Expval with a seeded device", "[Measures]") {

std::vector<std::mt19937> gens{std::mt19937{37}, std::mt19937{37}};

auto circuit = [shots](LQSimulator &sim, std::vector<double> &expval,
std::mt19937 &gen) {
auto circuit = [](LQSimulator &sim, std::vector<double> &expval,
std::mt19937 &gen) {
sim.SetDevicePRNG(&gen);
sim.SetDeviceShots(shots);
// state-vector with #qubits = n
Expand Down

0 comments on commit b46a8de

Please sign in to comment.