From b5ea856f2bb48a865048a9bb68d87e1f38978ede Mon Sep 17 00:00:00 2001 From: Boxi Li Date: Mon, 2 Sep 2024 09:59:07 +0200 Subject: [PATCH] Fix a merge error in doc --- doc/source/qip-simulator.rst | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/doc/source/qip-simulator.rst b/doc/source/qip-simulator.rst index e3ed05c5..b766c673 100644 --- a/doc/source/qip-simulator.rst +++ b/doc/source/qip-simulator.rst @@ -208,19 +208,19 @@ precomputes the product of the unitaries (in between the measurements): .. testoutput:: :options: +NORMALIZE_WHITESPACE - [Quantum object: dims = [[2, 2, 2], [2, 2, 2]], shape = (8, 8), type = oper, isherm = False - Qobj data = - [[ 0. 0.57735 0. -0.57735 0. 0.40825 0. -0.40825] - [ 0.57735 0. -0.57735 0. 0.40825 0. -0.40825 0. ] - [ 0.57735 0. 0.57735 0. 0.40825 0. 0.40825 0. ] - [ 0. 0.57735 0. 0.57735 0. 0.40825 0. 0.40825] - [ 0.57735 0. 0. 0. -0.8165 0. 0. 0. ] - [ 0. 0.57735 0. 0. 0. -0.8165 0. 0. ] - [ 0. 0. 0.57735 0. 0. 0. -0.8165 0. ] - [ 0. 0. 0. 0.57735 0. 0. 0. -0.8165 ]], - Measurement(M0, target=[0], classical_store=0), - Measurement(M1, target=[1], classical_store=1), - Measurement(M2, target=[2], classical_store=2)] + [Quantum object: dims=[[2, 2, 2], [2, 2, 2]], shape=(8, 8), type='oper', dtype=CSR, isherm=False + Qobj data = + [[ 0. 0.57735 0. -0.57735 0. 0.40825 0. -0.40825] + [ 0.57735 0. -0.57735 0. 0.40825 0. -0.40825 0. ] + [ 0.57735 0. 0.57735 0. 0.40825 0. 0.40825 0. ] + [ 0. 0.57735 0. 0.57735 0. 0.40825 0. 0.40825] + [ 0.57735 0. 0. 0. -0.8165 0. 0. 0. ] + [ 0. 0.57735 0. 0. 0. -0.8165 0. 0. ] + [ 0. 0. 0.57735 0. 0. 0. -0.8165 0. ] + [ 0. 0. 0. 0.57735 0. 0. 0. -0.8165 ]], + Measurement(M0, target=[0], classical_store=0), + Measurement(M1, target=[1], classical_store=1), + Measurement(M2, target=[2], classical_store=2)] Here, ``sim.ops`` stores all the circuit operations that are going to be applied during