Single-register arithmetic gates #13371
Build #20241025.5 had test failures
Details
- Failed: 9 (0.05%)
- Passed: 17,867 (99.81%)
- Other: 25 (0.14%)
- Total: 17,901
Annotations
Check failure on line 19748 in Build log
azure-pipelines / Qiskit.qiskit
Build log #L19748
Bash exited with code '1'.
Check failure on line 630 in Build log
azure-pipelines / Qiskit.qiskit
Build log #L630
Bash exited with code '255'.
azure-pipelines / Qiskit.qiskit
test_polynomial_function_1__1___0__0____0__0____0__2____0__1___0_1___0__1__
Test failed
Raw output
testtools.testresult.real._StringException: stdout: {{{
Instruction(name='LinFunction', num_qubits=3, num_clbits=0, params=[])
anc 1
}}}
Traceback (most recent call last):
File "/home/vsts/work/1/s/test-job/lib/python3.9/site-packages/ddt.py", line 221, in wrapper
return func(self, *args, **kwargs)
File "/tmp/terra-tests/test/python/circuit/library/test_linear_amplitude_function.py", line 121, in test_polynomial_function
self.assertFunctionIsCorrect(linear_f, reference, num_ancillas)
File "/tmp/terra-tests/test/python/circuit/library/test_linear_amplitude_function.py", line 41, in assertFunctionIsCorrect
tqc = transpile(circuit, basis_gates=["u", "cx"])
File "/home/vsts/work/1/s/qiskit/utils/deprecation.py", line 184, in wrapper
return func(*args, **kwargs)
File "/home/vsts/work/1/s/qiskit/compiler/transpiler.py", line 396, in transpile
out_circuits = pm.run(circuits, callback=callback, num_processes=num_processes)
File "/home/vsts/work/1/s/qiskit/transpiler/passmanager.py", line 441, in run
return super().run(circuits, output_name, callback, num_processes=num_processes)
File "/home/vsts/work/1/s/qiskit/transpiler/passmanager.py", line 464, in wrapper
return meth(*meth_args, **meth_kwargs)
File "/home/vsts/work/1/s/qiskit/transpiler/passmanager.py", line 226, in run
return super().run(
File "/home/vsts/work/1/s/qiskit/passmanager/passmanager.py", line 231, in run
out = [
File "/home/vsts/work/1/s/qiskit/passmanager/passmanager.py", line 232, in <listcomp>
_run_workflow(program=program, pass_manager=self, callback=callback, **kwargs)
File "/home/vsts/work/1/s/qiskit/passmanager/passmanager.py", line 292, in _run_workflow
passmanager_ir, final_state = flow_controller.execute(
File "/home/vsts/work/1/s/qiskit/passmanager/base_tasks.py", line 218, in execute
passmanager_ir, state = next_task.execute(
File "/home/vsts/work/1/s/qiskit/transpiler/basepasses.py", line 195, in execute
new_dag, state = super().execute(
File "/home/vsts/work/1/s/qiskit/passmanager/base_tasks.py", line 98, in execute
ret = self.run(passmanager_ir)
File "/home/vsts/work/1/s/qiskit/transpiler/passes/synthesis/high_level_synthesis.py", line 280, in run
return self._run(dag, tracker)
File "/home/vsts/work/1/s/qiskit/transpiler/passes/synthesis/high_level_synthesis.py", line 320, in _run
synthesized, used_qubits = self._synthesize_operation(node.op, qubits, tracker)
File "/home/vsts/work/1/s/qiskit/transpiler/passes/synthesis/high_level_synthesis.py", line 451, in _synthesize_operation
aux_qubits = tracker.borrow(synthesized.num_qubits - len(qubits), qubits)
File "/home/vsts/work/1/s/qiskit/transpiler/passes/synthesis/qubit_tracker.py", line 50, in borrow
raise RuntimeError(f"Cannot borrow {num_qubits} qubits, only {available} available.")
RuntimeError: Cannot borrow 1 qubits, only 0 available.
Check failure on line 1 in test_equivalence_phase_50_IntegerComparatorGate
azure-pipelines / Qiskit.qiskit
test_equivalence_phase_50_IntegerComparatorGate
Test failed
Raw output
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/home/vsts/work/1/s/test-job/lib/python3.9/site-packages/ddt.py", line 221, in wrapper
return func(self, *args, **kwargs)
File "/tmp/terra-tests/test/python/circuit/test_gate_definitions.py", line 334, in test_equivalence_phase
gate = gate_class(*params)
File "/home/vsts/work/1/s/qiskit/circuit/library/arithmetic/integer_comparator.py", line 190, in __init__
super().__init__("IntComp", num_state_qubits + 1, [], label=label)
File "/home/vsts/work/1/s/qiskit/circuit/gate.py", line 46, in __init__
super().__init__(name, num_qubits, 0, params, label=label, duration=duration, unit=unit)
File "/home/vsts/work/1/s/qiskit/circuit/instruction.py", line 82, in __init__
raise CircuitError("num_qubits and num_clbits must be integer.")
qiskit.circuit.exceptions.CircuitError: 'num_qubits and num_clbits must be integer.'
Check failure on line 1 in test_equivalence_phase_51_LinearPauliRotationsGate
azure-pipelines / Qiskit.qiskit
test_equivalence_phase_51_LinearPauliRotationsGate
Test failed
Raw output
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/home/vsts/work/1/s/test-job/lib/python3.9/site-packages/ddt.py", line 221, in wrapper
return func(self, *args, **kwargs)
File "/tmp/terra-tests/test/python/circuit/test_gate_definitions.py", line 334, in test_equivalence_phase
gate = gate_class(*params)
File "/home/vsts/work/1/s/qiskit/circuit/library/arithmetic/linear_pauli_rotations.py", line 216, in __init__
super().__init__("LinPauliRot", num_state_qubits + 1, [], label=label)
File "/home/vsts/work/1/s/qiskit/circuit/gate.py", line 46, in __init__
super().__init__(name, num_qubits, 0, params, label=label, duration=duration, unit=unit)
File "/home/vsts/work/1/s/qiskit/circuit/instruction.py", line 82, in __init__
raise CircuitError("num_qubits and num_clbits must be integer.")
qiskit.circuit.exceptions.CircuitError: 'num_qubits and num_clbits must be integer.'
Check failure on line 1 in test_equivalence_phase_54_PiecewisePolynomialPauliRotationsGate
azure-pipelines / Qiskit.qiskit
test_equivalence_phase_54_PiecewisePolynomialPauliRotationsGate
Test failed
Raw output
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/home/vsts/work/1/s/test-job/lib/python3.9/site-packages/ddt.py", line 221, in wrapper
return func(self, *args, **kwargs)
File "/tmp/terra-tests/test/python/circuit/test_gate_definitions.py", line 334, in test_equivalence_phase
gate = gate_class(*params)
File "/home/vsts/work/1/s/qiskit/circuit/library/arithmetic/piecewise_polynomial_pauli_rotations.py", line 415, in __init__
super().__init__("PiecewisePolyPauli", num_state_qubits + num_compare + 1, [], label=label)
File "/home/vsts/work/1/s/qiskit/circuit/gate.py", line 46, in __init__
super().__init__(name, num_qubits, 0, params, label=label, duration=duration, unit=unit)
File "/home/vsts/work/1/s/qiskit/circuit/instruction.py", line 82, in __init__
raise CircuitError("num_qubits and num_clbits must be integer.")
qiskit.circuit.exceptions.CircuitError: 'num_qubits and num_clbits must be integer.'