File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
qiskit_scaleway/primitives Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414from .estimator import Estimator
15- from .estimator_v1 import Estimator as EstimatorV1
1615from .sampler import Sampler
Original file line number Diff line number Diff line change 1515import numpy as np
1616import random
1717
18- from qiskit import transpile
19- from qiskit .circuit .library import IQP
18+ from qiskit .circuit .library import iqp
2019from qiskit .quantum_info import random_hermitian
2120
2221from qiskit_scaleway import ScalewayProvider
@@ -47,11 +46,12 @@ def test_sampler():
4746
4847 n_qubits = 10
4948 mat = np .real (random_hermitian (n_qubits , seed = 1234 ))
50- circuit = IQP (mat )
49+ circuit = iqp (mat )
5150 circuit .measure_all ()
5251
53- isa_circuit = transpile (circuit , backend = backend , optimization_level = 1 )
54- job = sampler .run ([isa_circuit ], shots = 100 )
52+ # isa_circuit = transpile(circuit, backend=backend, optimization_level=1)
53+ # job = sampler.run([isa_circuit], shots=100)
54+ job = sampler .run ([circuit ], shots = 100 )
5555 result = job .result ()
5656
5757 assert result is not None
You can’t perform that action at this time.
0 commit comments