|
Sequential Quantum Gate Decomposer
v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
Public Member Functions | |
| def | test_derivative_count_matches_parameter_num (self, qbit_num) |
| def | test_derivative_dtype_is_complex128 (self, qbit_num) |
| def | test_derivative_finite_difference_validation (self, qbit_num) |
| def | test_derivative_nonzero_for_parametric_circuit (self, qbit_num) |
| def | test_derivative_shapes_match_input (self, qbit_num) |
| def | test_no_params_returns_empty_list (self) |
| def | test_wrong_param_dtype_raises (self) |
apply_derivate_to: derivative of circuit w.r.t. each free parameter.
Definition at line 945 of file test_circuit.py.
| def tests.gates.test_circuit.TestApplyDerivateTo.test_derivative_count_matches_parameter_num | ( | self, | |
| qbit_num | |||
| ) |
Number of returned derivative matrices must equal get_Parameter_Num().
Definition at line 949 of file test_circuit.py.

| def tests.gates.test_circuit.TestApplyDerivateTo.test_derivative_dtype_is_complex128 | ( | self, | |
| qbit_num | |||
| ) |
Derivative matrices must be complex128.
Definition at line 974 of file test_circuit.py.

| def tests.gates.test_circuit.TestApplyDerivateTo.test_derivative_finite_difference_validation | ( | self, | |
| qbit_num | |||
| ) |
Analytic derivative must match finite-difference estimate.
Definition at line 987 of file test_circuit.py.

| def tests.gates.test_circuit.TestApplyDerivateTo.test_derivative_nonzero_for_parametric_circuit | ( | self, | |
| qbit_num | |||
| ) |
All derivative matrices must be non-zero for a parametric circuit.
Definition at line 1010 of file test_circuit.py.

| def tests.gates.test_circuit.TestApplyDerivateTo.test_derivative_shapes_match_input | ( | self, | |
| qbit_num | |||
| ) |
Each derivative matrix must have the same shape as the input.
Definition at line 961 of file test_circuit.py.

| def tests.gates.test_circuit.TestApplyDerivateTo.test_no_params_returns_empty_list | ( | self | ) |
Parameter-free circuit should return an empty list of derivatives.
Definition at line 1022 of file test_circuit.py.

| def tests.gates.test_circuit.TestApplyDerivateTo.test_wrong_param_dtype_raises | ( | self | ) |
Passing float32 parameters to apply_derivate_to should raise.
Definition at line 1032 of file test_circuit.py.

1.8.13