#include "Gate.h"
#include "H.h"
#include "density_matrix.h"
#include "gate_operation.h"
#include "matrix.h"
#include "noise_channel.h"
#include "noise_operation.h"
#include "noisy_circuit.h"
#include <cassert>
#include <cmath>
#include <iostream>
Go to the source code of this file.
◆ ASSERT_NEAR
| #define ASSERT_NEAR |
( |
|
a, |
|
|
|
b, |
|
|
|
tol |
|
) |
| |
Value:if (std::abs((a) - (b)) > (tol)) { \
std::cerr << "FAILED: Expected " << (a) << " â " << (b) \
<< ", difference: " << std::abs((a) - (b)) << std::endl; \
return 1; \
}
Definition at line 22 of file test_basic.cpp.
◆ ASSERT_TRUE
| #define ASSERT_TRUE |
( |
|
cond | ) |
|
Value:if (!(cond)) { \
std::cerr << "FAILED: Condition false: " #cond << std::endl; \
return 1; \
}
Definition at line 29 of file test_basic.cpp.
◆ main()
◆ test_amplitude_damping()
| int test_amplitude_damping |
( |
| ) |
|
◆ test_clone_operations()
| int test_clone_operations |
( |
| ) |
|
◆ test_construction()
| int test_construction |
( |
| ) |
|
◆ test_depolarizing_fixed()
| int test_depolarizing_fixed |
( |
| ) |
|
◆ test_depolarizing_parametric()
| int test_depolarizing_parametric |
( |
| ) |
|
◆ test_gate_operation()
| int test_gate_operation |
( |
| ) |
|
◆ test_ground_state()
| int test_ground_state |
( |
| ) |
|
◆ test_legacy_noise_channel()
| int test_legacy_noise_channel |
( |
| ) |
|
◆ test_maximally_mixed()
| int test_maximally_mixed |
( |
| ) |
|
◆ test_mixed_gates_and_noise()
| int test_mixed_gates_and_noise |
( |
| ) |
|
◆ test_noisy_circuit_bell()
| int test_noisy_circuit_bell |
( |
| ) |
|
◆ test_noisy_circuit_parametric_noise()
| int test_noisy_circuit_parametric_noise |
( |
| ) |
|
◆ test_noisy_circuit_with_noise()
| int test_noisy_circuit_with_noise |
( |
| ) |
|
◆ test_operation_info()
| int test_operation_info |
( |
| ) |
|
◆ test_partial_trace()
| int test_partial_trace |
( |
| ) |
|
◆ test_phase_damping()
| int test_phase_damping |
( |
| ) |
|
◆ test_single_qubit_local()
| int test_single_qubit_local |
( |
| ) |
|
◆ test_state_vector_construction()
| int test_state_vector_construction |
( |
| ) |
|
◆ test_two_qubit_controlled()
| int test_two_qubit_controlled |
( |
| ) |
|
◆ test_unitary_evolution()
| int test_unitary_evolution |
( |
| ) |
|