602c2de3f528a95a7c1cc785f608e3e93fd8e404,test/test_initial_state_custom.py,TestInitialStateCustom,test_qubits_2_uniform_circuit,#TestInitialStateCustom#,64
Before Change
np.testing.assert_array_almost_equal(cct, [0.1767767]*32)
def test_qubits_2_uniform_circuit(self):
self.custom.init_args(2, state="uniform")
cct = self.custom.construct_circuit("circuit")
self.assertEqual(cct.qasm(), "OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[2];\n"
"u2(0.0,3.14159265358979) q[0];\nu2(0.0,3.14159265358979) q[1];\n")
After Change
np.testing.assert_array_almost_equal(cct, [0.1767767]*32)
def test_qubits_2_uniform_circuit(self):
self.custom = Custom(2, state="uniform")
cct = self.custom.construct_circuit("circuit")
self.assertEqual(cct.qasm(), "OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[2];\n"
"u2(0.0,3.14159265358979) q[0];\nu2(0.0,3.14159265358979) q[1];\n")
In pattern: SUPERPATTERN
Frequency: 10
Non-data size: 5
Instances
Project Name: Qiskit/qiskit-aqua
Commit Name: 602c2de3f528a95a7c1cc785f608e3e93fd8e404
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: test/test_initial_state_custom.py
Class Name: TestInitialStateCustom
Method Name: test_qubits_2_uniform_circuit
Project Name: Qiskit/qiskit-aqua
Commit Name: 602c2de3f528a95a7c1cc785f608e3e93fd8e404
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: test/test_initial_state_custom.py
Class Name: TestInitialStateCustom
Method Name: test_qubits_2_uniform_vector
Project Name: Qiskit/qiskit-aqua
Commit Name: 602c2de3f528a95a7c1cc785f608e3e93fd8e404
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: test/test_initial_state_custom.py
Class Name: TestInitialStateCustom
Method Name: test_qubits_5_random_vector
Project Name: Qiskit/qiskit-aqua
Commit Name: 602c2de3f528a95a7c1cc785f608e3e93fd8e404
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: test/test_initial_state_custom.py
Class Name: TestInitialStateCustom
Method Name: test_qubits_2_zero_circuit
Project Name: Qiskit/qiskit-aqua
Commit Name: 602c2de3f528a95a7c1cc785f608e3e93fd8e404
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: test/test_initial_state_custom.py
Class Name: TestInitialStateCustom
Method Name: test_qubits_2_zero_vector_wrong_cct_mode
Project Name: Qiskit/qiskit-aqua
Commit Name: 602c2de3f528a95a7c1cc785f608e3e93fd8e404
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: test/test_initial_state_custom.py
Class Name: TestInitialStateCustom
Method Name: test_qubits_2_zero_vector
Project Name: Qiskit/qiskit-aqua
Commit Name: 602c2de3f528a95a7c1cc785f608e3e93fd8e404
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: test/test_initial_state_custom.py
Class Name: TestInitialStateCustom
Method Name: test_qubits_2_random_vector
Project Name: Qiskit/qiskit-aqua
Commit Name: 602c2de3f528a95a7c1cc785f608e3e93fd8e404
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: test/test_initial_state_custom.py
Class Name: TestInitialStateCustom
Method Name: test_qubits_5_zero_vector
Project Name: Qiskit/qiskit-aqua
Commit Name: 602c2de3f528a95a7c1cc785f608e3e93fd8e404
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: test/test_initial_state_custom.py
Class Name: TestInitialStateCustom
Method Name: test_qubits_5_uniform_vector
Project Name: Qiskit/qiskit-aqua
Commit Name: 602c2de3f528a95a7c1cc785f608e3e93fd8e404
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: test/test_initial_state_custom.py
Class Name: TestInitialStateCustom
Method Name: test_qubits_5_zero_circuit