Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the python-packages group across 1 directory with 6 updates #379

Merged
merged 10 commits into from
Sep 18, 2024
13 changes: 8 additions & 5 deletions docs/manual/manual_backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ tags: [skip-execution]

from pytket.extensions.qiskit import IBMQBackend, AerStateBackend

dev_b = IBMQBackend("ibmq_quito")
dev_b = IBMQBackend("ibm_brisbane")
sim_b = AerStateBackend()
print(dev_b.required_predicates)
print(sim_b.required_predicates)
Expand Down Expand Up @@ -534,7 +534,7 @@ from pytket import Circuit
from pytket.extensions.qiskit import IBMQBackend
from pytket.utils import expectation_from_counts

backend = IBMQBackend("ibmq_quito")
backend = IBMQBackend("ibm_brisbane")

state = Circuit(3)
state.H(0).CX(0, 1).CX(1, 2).X(0)
Expand Down Expand Up @@ -588,6 +588,9 @@ Below we show how the {py:class}`~pytket.extensions.cirq.CirqStateSampleBackend`


```{code-cell} ipython3
---
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This cell currently gives a warning because of #383, it should be enabled again after the issues is solved.

tags: [skip-execution]
---

from qiskit.primitives import BackendSampler
from qiskit_algorithms import Grover, AmplificationProblem
Expand Down Expand Up @@ -695,7 +698,7 @@ from pytket.backends import StatusEnum
from pytket.extensions.qiskit import IBMQBackend
from pytket.utils import expectation_from_counts

backend = IBMQBackend("ibmq_quito")
backend = IBMQBackend("ibm_brisbane")

state = Circuit(3)
state.H(0).CX(0, 1).CX(1, 2).X(0)
Expand Down Expand Up @@ -772,7 +775,7 @@ tags: [skip-execution]
from pytket import Circuit
from pytket.extensions.qiskit import IBMQBackend

backend = IBMQBackend("ibmq_quito")
backend = IBMQBackend("ibm_brisbane")

circ = Circuit(3, 3)
circ.X(1).CZ(0, 1).CX(1, 2).measure_all()
Expand Down Expand Up @@ -801,7 +804,7 @@ tags: [skip-execution]
from pytket.backends import ResultHandle
from pytket.extensions.qiskit import IBMQBackend

backend = IBMQBackend("ibmq_quito")
backend = IBMQBackend("ibm_brisbane")

handle = ResultHandle.from_str("('5e8f3dcbbb7d8500119cfbf6', 0)")
counts = backend.get_result(handle).get_counts()
Expand Down
Loading