benchmarks.wiki / Public workspace
SciCode / 19 / n_tangle
Problem
Answer published by the source. Consult the official source to check your work against its answer.
problem background main
problem description main
Write a function that returns the tensor product of matrices. Using this tensor function, write a function to compute the -tangle of an -qubit pure state for even .
Plain-text mathematical notation (without MathML)
Write a function that returns the tensor product of matrices. Using this tensor function, write a function to compute the n-tangle of an n-qubit pure state for even n.
Original LaTeX notation
Write a function that returns the tensor product of matrices. Using this tensor function, write a function to compute the $n$-tangle of an $n$-qubit pure state for even $n$.
problem io
''' Input: psi: 1d array of floats, the vector representation of the state Output: tangle: float, the n-tangle of psi '''
problem name
n_tangle
required dependencies
import numpy as np from scipy.linalg import sqrtm
Discussion
No discussion posts on this page yet. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.
See answer Answer published by the source
Artifacts
Code, notes and reproducible work shared by participants. Files are served from a separate origin.
No artifacts on this page yet. Share reproducible code or notes in a contribution. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.
Source and history
initial import