Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into fix-docplex2
Browse files Browse the repository at this point in the history
  • Loading branch information
manoelmarques authored Feb 10, 2021
2 parents 722b914 + 4768635 commit 8a00745
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/aqua/operators/test_evolution.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2020.
# (C) Copyright IBM 2018, 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
Expand Down Expand Up @@ -86,11 +86,12 @@ def test_parameterized_evolution(self):
# wf = (Pl^Pl) + (Ze^Ze)
wf = (op).exp_i() @ CX @ (H ^ I) @ Zero
mean = evolution.convert(wf)
circuit_params = mean.to_circuit().parameters
# Check that the non-identity parameters are in the circuit
for p in thetas[1:]:
self.assertIn(p, circuit_params)
self.assertNotIn(thetas[0], circuit_params)
circuit = mean.to_circuit()
# Check that all parameters are in the circuit
for p in thetas:
self.assertIn(p, circuit.parameters)
# Check that the identity-parameters only exist as global phase
self.assertNotIn(thetas[0], circuit._parameter_table.get_keys())

def test_bind_parameters(self):
""" bind parameters test """
Expand Down

0 comments on commit 8a00745

Please sign in to comment.