Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
backend.name(),
cred.hub,
cred.group,
cred.project)],
style_="color:white")]),
vue.Tabs(vertical=True,
children=[
vue.Tab(children=['Configuration']),
vue.Tab(children=['Qubits']),
vue.Tab(children=['Multi-Qubit Gates']),
vue.Tab(children=['Error map']),
vue.Tab(children=['Job Summary']),
vue.TabItem(children=[config_tab(backend)]),
vue.TabItem(children=[qubits_tab(backend)]),
vue.TabItem(children=[gates_tab(backend)]),
vue.TabItem(children=[iplot_error_map(backend,
as_widget=True)]),
last_tab])
])
# Load job data async for a bit better performance
thread = threading.Thread(target=_async_job_loader,
args=(last_tab, backend))
thread.start()
display(card)
vue.ToolbarTitle(children=['{} @ ({}/{}/{})'.format(
backend.name(),
cred.hub,
cred.group,
cred.project)],
style_="color:white")]),
vue.Tabs(vertical=True,
children=[
vue.Tab(children=['Configuration']),
vue.Tab(children=['Qubits']),
vue.Tab(children=['Multi-Qubit Gates']),
vue.Tab(children=['Error map']),
vue.Tab(children=['Job Summary']),
vue.TabItem(children=[config_tab(backend)]),
vue.TabItem(children=[qubits_tab(backend)]),
vue.TabItem(children=[gates_tab(backend)]),
vue.TabItem(children=[iplot_error_map(backend,
as_widget=True)]),
last_tab])
])
# Load job data async for a bit better performance
thread = threading.Thread(target=_async_job_loader,
args=(last_tab, backend))
thread.start()
display(card)
def backend_widget(backend: Union[IBMQBackend, FakeBackend]) -> None:
"""Display backend information as a widget.
Args:
backend: Display information about this backend.
"""
cred = backend._credentials
last_tab = vue.TabItem(children=[])
card = vue.Card(height=600, outlined=True,
children=[
vue.Toolbar(flat=True, color="#002d9c",
children=[
vue.ToolbarTitle(children=['{} @ ({}/{}/{})'.format(
backend.name(),
cred.hub,
cred.group,
cred.project)],
style_="color:white")]),
vue.Tabs(vertical=True,
children=[
vue.Tab(children=['Configuration']),
vue.Tab(children=['Qubits']),
vue.Tab(children=['Multi-Qubit Gates']),
vue.Tab(children=['Error map']),