Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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']),
vue.Tab(children=['Job Summary']),