Skip to content

Commit bbec320

Browse files
committed
Fix CI for data provider change and cct draw (#344)
* Fix CI for data provider change and cct draw * Fix reference output indent
1 parent ffe877e commit bbec320

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

qiskit_finance/circuit/library/probability_distributions/normal.py

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,13 @@ class NormalDistribution(QuantumCircuit):
7979
>>> from qiskit_finance.circuit.library.probability_distributions import NormalDistribution
8080
>>> circuit = NormalDistribution(3, mu=1, sigma=1, bounds=(0, 2))
8181
>>> circuit.decompose().draw()
82-
»
83-
q_0: ───────────────────────────────────────────────────»
84-
┌────────────────────────┐»
85-
q_1: ─────────────────────────┤0 ├»
86-
┌───────────────────────┐│ multiplex2_reverse_dg │»
87-
q_2: ┤ multiplex1_reverse_dg ├┤1 ├»
88-
└───────────────────────┘└────────────────────────┘»
89-
« ┌────────────────────────┐
90-
«q_0: ┤0 ├
91-
« │ │
92-
«q_1: ┤1 multiplex3_reverse_dg ├
93-
« │ │
94-
«q_2: ┤2 ├
95-
« └────────────────────────┘
82+
┌─────────────────┐
83+
q_0: ─────────────────────────────────────┤0 ├
84+
┌─────────────────┐│ │
85+
q_1: ──────────────────┤0 ├┤1 multiplexer_dg ├
86+
┌────────────────┐│ multiplexer_dg ││ │
87+
q_2: ┤ multiplexer_dg ├┤1 ├┤2 ├
88+
└────────────────┘└─────────────────┘└─────────────────┘
9689
9790
>>> mu = [1, 0.9]
9891
>>> sigma = [[1, -0.2], [-0.2, 1]]

test/data_providers/test_data_providers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ def test_exchangedata(self):
200200
self.fail(f"Test of ExchangeDataProvider failed: {str(ex)}")
201201

202202
@data(
203-
[["MSFT", "AAPL"], [[1334, 471.0], [471.0, 210.0]], [[1.0, 2.99e-05], [2.99e-05, 1.0]]],
204-
["MSFT", 1334.0, [[1.0]]],
203+
[["MSFT", "AAPL"], [[1329, 470.0], [470.0, 209.0]], [[1.0, 2.99e-05], [2.99e-05, 1.0]]],
204+
["MSFT", 1329.0, [[1.0]]],
205205
)
206206
@unpack
207207
def test_yahoo(self, tickers, covariance, similarity):

0 commit comments

Comments
 (0)