Skip to content

Commit 6315cb6

Browse files
update readme
1 parent c893e7c commit 6315cb6

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525

2626
<p align="center"> English | <a href="README_cn.md"> 简体中文 </a></p>
2727

28-
TensorCircuit-NG is a high performance quantum software framework, supporting for automatic differentiation, just-in-time compiling, hardware acceleration, and vectorized parallelism, providing unified infrastructures and interfaces for quantum programming.
28+
TensorCircuit-NG is an open-source high-performance quantum software framework, supporting for automatic differentiation, just-in-time compiling, hardware acceleration, and vectorized parallelism, providing unified infrastructures and interfaces for quantum programming. It can compose quantum circuits, neural networks and tensor networks seamlessly with high simulation efficiency and flexibility.
2929

30-
TensorCircuit-NG is built on top of modern machine learning frameworks: Jax, TensorFlow, and PyTorch. It is specifically suitable for highly efficient simulations of quantum-classical hybrid paradigm and variational quantum algorithms in ideal, noisy and approximate cases. It also supports quantum hardware access and provides CPU/GPU/QPU hybrid deployment solutions.
30+
TensorCircuit-NG is built on top of modern machine learning frameworks: Jax, TensorFlow, and PyTorch. It is specifically suitable for large-scale simulations of quantum-classical hybrid paradigm and variational quantum algorithms in ideal, noisy, approximate and analog cases. It also supports quantum hardware access and provides CPU/GPU/QPU hybrid deployment solutions.
3131

32-
TensorCircuit-NG is [fully compatible](https://tensorcircuit-ng.readthedocs.io/en/latest/faq.html#what-is-the-relation-between-tensorcircuit-and-tensorcircuit-ng) with TensorCircuit with more new features and bug fixes (support numpy>2 and qiskit>1).
32+
TensorCircuit-NG is [fully compatible](https://tensorcircuit-ng.readthedocs.io/en/latest/faq.html#what-is-the-relation-between-tensorcircuit-and-tensorcircuit-ng) with TensorCircuit with more new features and bug fixes (support latest `numpy>2` and `qiskit>1`).
3333

3434
## Getting Started
3535

tensorcircuit/basecircuit.py

+14
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,20 @@ def sample(
542542
:type readout_error: Optional[Sequence[Any]]. Tensor, List, Tuple
543543
:param format: sample format, defaults to None as backward compatibility
544544
check the doc in :py:meth:`tensorcircuit.quantum.measurement_results`
545+
Six formats of measurement counts results:
546+
547+
"sample_int": # np.array([0, 0])
548+
549+
"sample_bin": # [np.array([1, 0]), np.array([1, 0])]
550+
551+
"count_vector": # np.array([2, 0, 0, 0])
552+
553+
"count_tuple": # (np.array([0]), np.array([2]))
554+
555+
"count_dict_bin": # {"00": 2, "01": 0, "10": 0, "11": 0}
556+
557+
"count_dict_int": # {0: 2, 1: 0, 2: 0, 3: 0}
558+
545559
:type format: Optional[str]
546560
:param random_generator: random generator, defaults to None
547561
:type random_generator: Optional[Any], optional

0 commit comments

Comments
 (0)