2323
2424from qiskit import QiskitError
2525from qiskit .circuit import Parameter , ParameterExpression , ParameterVector
26- from qiskit .circuit .library import EfficientSU2
26+ from qiskit .circuit .library import efficient_su2
2727from qiskit .circuit .parametertable import ParameterView
2828from qiskit .compiler .transpiler import transpile
2929from qiskit .primitives import BackendEstimator
@@ -1148,7 +1148,7 @@ def test_paulis_setter_absorbs_phase_2(self):
11481148
11491149 def test_apply_layout_with_transpile (self ):
11501150 """Test the apply_layout method with a transpiler layout."""
1151- psi = EfficientSU2 (4 , reps = 4 , entanglement = "circular" )
1151+ psi = efficient_su2 (4 , reps = 4 , entanglement = "circular" )
11521152 op = SparsePauliOp .from_list ([("IIII" , 1 ), ("IZZZ" , 2 ), ("XXXI" , 3 )])
11531153 backend = GenericBackendV2 (num_qubits = 7 )
11541154 transpiled_psi = transpile (psi , backend , optimization_level = 3 , seed_transpiler = 12345 )
@@ -1163,7 +1163,7 @@ def test_apply_layout_with_transpile(self):
11631163
11641164 def test_permute_sparse_pauli_op_estimator_example (self ):
11651165 """Test using the apply_layout method with an estimator workflow."""
1166- psi = EfficientSU2 (4 , reps = 4 , entanglement = "circular" )
1166+ psi = efficient_su2 (4 , reps = 4 , entanglement = "circular" )
11671167 op = SparsePauliOp .from_list ([("IIII" , 1 ), ("IZZZ" , 2 ), ("XXXI" , 3 )])
11681168 backend = GenericBackendV2 (num_qubits = 7 , seed = 0 )
11691169 backend .set_options (seed_simulator = 123 )
0 commit comments