tensorcircuit
tensorcircuit copied to clipboard
Tensor network based quantum software framework for the NISQ era
## Task description Revise the following code using tensorcircuit backend API instead of tf API, making it backend agnostic ## Implementation Revise the following code using tensorcircuit backend API instead...
## Task description Similar to `AbstractCircuit.to_qiskit` method, ultimately we would like to transform tensorcircuit Circuit with cirq Circuit as well. ## Implementation Add functions similar to `qir2qiskit` in https://github.com/tencent-quantum-lab/tensorcircuit/blob/master/tensorcircuit/translation.py. And...
## Issue Description For a quantum circuit with n qubits, function "c.amplitude" returns the amplitude of a given quantum state. It will work when an n-bit binary string is passed...
## Issue Description Simply replacing ``torch.jit.script`` or ``torch.jit.trace`` with ``backend.jit`` still fail for tc functions Example scripts: ```python @torch.jit.script def f(param): c = tc.Circuit(6) for i in range(5): for j...
I am trying to migrate [vqe_h2o.ipynb](https://github.com/tencent-quantum-lab/tensorcircuit/blob/master/docs/source/tutorials/vqe_h2o.ipynb) to use `CO2` [carbon dioxide molecule](https://gist.github.com/buttercutter/19cd09def3360f88db509670179fd54c/f48198df7129dcce72979f2d17c84efe82f450f4#file-vqe_co2-ipynb). 1. For `print(fh.terms[((0, 1), (0, 0))])` which is the two-body coefficients, it gives `-36.01932840424451`. When I try to...
## Task description Example demonstrating VQE optimization using SPSA via https://github.com/andim/noisyopt package ## Implementation add an scripts in `examples` or an jupyter notebook in `doc/source/tutorials`, actually slight change on https://github.com/tencent-quantum-lab/tensorcircuit/blob/master/examples/vqe_shot_noise.py...
## Issue Description In my tests, MPSCircuits take much longer to get jitted than the same circuits. For example, within 2 minutes for a default-type circuit of 8 qubits, but...
## Issue Description In the test of #213, I found that the Vmap function isn't working when using JAX-based MPSCircuit. The program is not paralleled and only uses one CPU...
## Task description Add an example script in `/examples` or a jupyter notebook in `/docs/source/tutorials` to demonstrate the usage of different cotengra optimizers and benchmark the performance metric (pathfinding time,...